problem with the redraw method on a DataGrid

47 views
Skip to first unread message

Rodrigue ...

unread,
Jan 19, 2013, 7:29:05 AM1/19/13
to google-we...@googlegroups.com
Hi all

may be someone already experienced the following problem. I have a DataGrid with chexbox column as first column. There is no selection handler on the DataGrid, because I don't want the whole row to be selected when the user selects its checkbox. 

The cells' values in a row come from a data object (Contact). 
Here is the use case with problems:
1. the checkbox column of row is checked (the row is not selected)
2. user unchecks the row
3. the checkbox get in unchecked state
4. a RPC call is trigger
5. the action on the server throws an Exception because this action is not possible
6. in the callback response the checkbox of the row should be reset to checkbox state to checked, because the corresponding information in the corresponding Contact has not changed. For that I just call the methode DataGrid#redraw. 

Unfortunately the redrawing has no effect.

Does anyone have an Idea why?

Thank you
Rodrigue

Thomas Broyer

unread,
Jan 19, 2013, 3:52:01 PM1/19/13
to google-we...@googlegroups.com, rla...@googlemail.com
You might have to call clearViewData on the CheckBoxCell for the row's key.

Rodrigue ...

unread,
Jan 19, 2013, 3:51:37 PM1/19/13
to google-we...@googlegroups.com
Hi 

I solved the problem by extending the CheckboxCell.
Reply all
Reply to author
Forward
0 new messages