SmartGWT version: 3.0
Browser(s) version(s) involved:
- Google Chrome: 14.0.835.202 m
- Mozzila Firefox: v3.6.23
Hi,
I have the following scenario:
1. I create a databound ListGrid.
2. I push data to the Grid from the server side.
3. On an update event I update the changed record.
Now everything so far is fine. What I want to do next is change the background color of the updated row in my ListGrid to red, and seconds later return the style to normal, so the user can see flashes when an updated has occurred.
I've implemented the following into my onSuccess method of my RPC when an update occurs:
...
int recordNum = keyData.getRecordList().findIndex("key", result.getKey());
//the right key is returned here.
keyData.getRecord(recordNum).setCustomStyle("background-color:#FF0000");
keyData.refreshRow(recordNum);
//where keyData is my ListRecord
Now I expect here to see my row's background changing to red, however nothing happens.
Any way I can do this?
Thanks.
Browser(s) version(s) involved:
- Google Chrome: 14.0.835.202 m
- Mozzila Firefox: v3.6.23
Hi,
I have the following scenario:
1. I create a databound ListGrid.
2. I push data to the Grid from the server side.
3. On an update event I update the changed record.
Now everything so far is fine. What I want to do next is change the background color of the updated row in my ListGrid to red, and seconds later return the style to normal, so the user can see flashes when an updated has occurred.
I've implemented the following into my onSuccess method of my RPC when an update occurs:
...
int recordNum = keyData.getRecordList().findIndex("key", result.getKey());
//the right key is returned here.
keyData.getRecord(recordNum).setCustomStyle("background-color:#FF0000");
keyData.refreshRow(recordNum);
//where keyData is my ListRecord
Now I expect here to see my row's background changing to red, however nothing happens.
Any way I can do this?
Thanks.
Comment