Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by George on Mar 31, 2008 23:29
open dhtmlx forum
setRowColor across multiple pages

Hi

While i am waiting a response on my previous posting regarding a 'hidden' coltype i am using the api function to hide a column.

The below code works and the column is hidden across all pages. I am also setting the row colour according to the hidden column value however this only works for the current page. I have paging enabled but when going to the next page the colours of the affected rows are not changed.

    mygrid.loadXML("/xml/some.xml?"+params, function(){
     mygrid.setColumnHidden(10,true);
mygrid.forEachRow(function(id){
    cellValue = mygrid.cells(id,10).getValue();
if (cellValue == "Y"){
    mygrid.setRowColor(id,"#FFAFBA");
}
});

Thanks
George
Answer posted by Support on Apr 01, 2008 10:06
Which version of grid you are using ?
I can't reconstruct the issue with dhtmlxgrid 1.5 and as far as I can see it must work correctly for dhtmlxgrid 1.4 as well
Please check attached sample.

If problem still occurs fro you - please send any kind of sample where  problem can be reconstructed. You can send it directly to support@dhtmlx.com
Attachments (1)