count rows not working

I’ve tried using getAllRowIds() to retrieve the total number of rows in grid but it returns blank in server side code.

Response.Write Request.Form(“ff_rows_num”)

MY CODE


You have to call this method after all rows are loaded:

mygrid.loadXML("dhtmlx/dhtmlxGrid/samples/common/grid.xml",function(){ var list=mygrid.getAllRowIds(); document.form1.ff_rows_num.value=list; });

Tq, it works.