Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Velmurugant on Sep 10, 2009 03:50
open dhtmlx forum
Is it possible to attachevent when we doing SmartRendering on Grid?

Hi,
I am using Grid to display more than 5000 records. Based on the cell value, (Active/Inactive) i am changing the cell background color at the time of xml loading. when i use smartRendering , the changing cell background is not working properly. how do i handle this? It is working in first page of grid only. If i scroll down the grid, the color change is not working? Is it possible to attach event on rendering time? Please help me.

Thanks,
Velmurugan
Answer posted by dhxSupport on Sep 10, 2009 05:08
You can use onRowRendered event, it occurs for each row, after its rendering

grid.attachEvent("onRowRendered",function(id){
           // id - id of row
           ...any row coloring code is here...
           return;
});