Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alexey on Dec 24, 2008 03:24
open dhtmlx forum
this.rowsBuffer[i] is null

We are using version 2 of grid professional.

Have a grid with subgrid on page.

sorting is working OK in subgrid. But in parent grid when trying to sort we have error: "this.rowsBuffer[i] is null"

Can you please advise with any possible reason of this?

Thanks in advance.

This is how we init grid.
<pre>
mygrid = new dhtmlXGridObject('gridbox');
    mygrid.setImagePath("../jscripts/dhtmlxgrid/imgs/");
    mygrid.setHeader(" , ,Ra No,Acc No,Statement Date,Name,Action");
    mygrid.setInitWidths("50,40,150,150,150,150,150");
    mygrid.setColTypes("ro,sub_row_grid,ro,ro,ro,ro,ro");
    mygrid.setSkin("light");
    mygrid.setOnRowSelectHandler(m_f2);
    mygrid.setColSorting("str,str,str,str,str,str,str");
    mygrid.setColumnColor("whitesmoke");
    mygrid.init();
</pre>
Answer posted by Support on Dec 24, 2008 05:31
Such error may occur if you have grid in dynamic mode ( dyn. srnd or dyn. paging ) - in such case client side sorting can't be used , because not all data loaded to client side. 
( technically it possible to generate such error in case when all rows added by script, in specific positions, with some positions not filled - but it is a pretty rare case )