ListGrid DataSource and Events

Hello,

I have a list grid which is populated with a new DataSource. On this list grid i have two events.

The first is to delete a row when i click on a button. So i catch the event and i do like that :

listGrid.removeSelectedData();

However the listGrid is not refresh, the row is always here.

Iam have the same problem with update. I set the DataSource field as editable. But when i do an edit the update is reverted.

It is really annoying.

What do i missed ?

Thanks.

Do you have a primary key field defined on your DataSource?

Sanjiv

Yes i have :

DataSourceIntegerField pkField = new DataSourceIntegerField("id");
		pkField.setHidden(true);
		pkField.setPrimaryKey(true);

Can you modify an existing showcase example to reproduce this behavior? Alternatively please post a simplified standalone testcase.

Sanjiv

I use setClientOnly(true). Can we use update with that to true ?

I think it’s an error in my code and not a bug.