Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Simon on Apr 28, 2008 01:31
open dhtmlx forum
how to know record number after fetching data from backend database?

I get data from backend database by xml stream, howerver, how to get record number on web page?
thank you very much!
Answer posted by Support on Apr 28, 2008 03:10
You can get number as
    grid.getRowsNum();


grid.loadXML(url,function(){
    alert(grid.getRowsNum()+" rows loaded");
});
Answer posted by Simon on Apr 28, 2008 03:38
invoke getRowsNum(), but can't get number,why?
Answer posted by Simon on Apr 28, 2008 03:48
i immediately invoke getRowsNum() after load data method, result is 0, how to figure it out?thank you
Answer posted by Support on Apr 28, 2008 06:10
The loading of data is async. You need to use onXLE event or second parameter of loadXML command to catch moment when data loaded