I am tiring to format the the grid rows while loading itself. My aim is to make the row as ro while load the content with some condition. its working fine foe first page but it not happen for next pages of the grid. my detailed code is below. Any one knows the reason please share with me.
mygrid.loadXML("xml/get_data.php?juid=" + juid,function(){
mygrid.forEachRow(function(id){
if (mygrid.cellById(id,22).getValue()==1)
{
mygrid.setRowTextStyle(id,"color: red");
mygrid.setRowExcellType(id,"ro");
}
});