Hello
I would like to do like the function Starred in gmail. There is a star blank icon next to the mail subjet. If users click on the star, il will change to a yellow star. Could you tell me how to do like that with actioncolumn?

Thank you very much
Tang

skirtle

9 Apr 2012, 1:41 PM

You need a field in your record that determines whether or not the star is shown.

On your column, specify a getClass function that reads in the relevant field from the record and adds the correct CSS class accordingly.

Then, in your handler function, switch the value in the record. The grid will refresh itself automatically.

But it seems that the css is not applied to the column. I tried to inspect the element in the web page and see the 2 image star and star_white are loaded but it is not shown in the column. Do you know why?
Thank you.