PDA

View Full Version : How to blink GXT Grid row



gxtyas
14 Mar 2011, 5:25 AM
Sven,

On adding new row to grid, I would like to highlight the grid row for few seconds,
I tried the following code but no luck , Could you please show the correct way to highligh the grid row?



grid.getStore().insert(beanModel,0);
grid.getView().refresh(false);
El el = new El(grid.getView().getRow(0).getInnerHTML());
el.setVisibilityMode(El.VisMode.VISIBILITY);
el.blink(new FxConfig(1000));

micgala
14 Mar 2011, 7:48 AM
Try it like this (untested):



El.fly(grid.getView().getRow(0)).blink(new FxConfig(1000));

gxtyas
14 Mar 2011, 9:51 AM
Thank you very much micgala.

Now the blink works, was not aware of Ext.fly function to convert google Element object to El object