I want to change the backbolor when my I found invalid value in my java programme (using liferay portlet).
After I use cell..setStyle(style);
the cell style won't changed immediately. It will change when user input invalid value twice in a row.
1. using gridweb.setOnCellUpdatedClientFunction("dealwithcellsupdate"); to active js function.
2. dealwithcellsupdate will call ajax function post to java function to do validation.
3. setStyle part is in the "java function" on step 2.
4. the style is changed but the gridweb won't show( I know because I used getstyle to check it) but won't display immediately on the webpage.
5. it will change only when I updated the cell at the second time but I want it at the first time.