Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Paul K on Aug 14, 2008 18:59
open dhtmlx forum
Refresh alternate rows in grid

I have a grid which uses the light skin. I've enabled drag and drop for the grid and mercy drag is false. As I move rows around in the grid the row color does not alternate. That is there can be several consecutive rows of the same color.

Is there a function I can call in the onDrop event to restore the alternate row colors? So that after each row is dropped the colors of the rows are corrected.

Paul
Answer posted by Support on Aug 15, 2008 03:47
    grid._fixAlterCss();
or
    grid.callEvent("onGridReconstructed",[]); //this will fire all possible updates including alter css color