Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ravi on Mar 09, 2009 00:02
open dhtmlx forum
dhtmlxGrid

when we can call getRowsNum() method using grid.loadXml as after calling loadXml ....I am getting getRowsNum =0.Also,for grid.loadXmlString I am getting getRowsNum correctly but not for loadXml method
Answer posted by dhxSupport on Mar 09, 2009 02:20

You have to call getRowsNum() method after all rows was loaded. To detect when all rows was loaded you can use 2nd parameter of loadXML method:

mygrid.loadXML("grid.xml",function(){

alert(mygrid.getRowsNum());

})