Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ale on Jul 31, 2008 09:08
open dhtmlx forum
Rowspan error on ForeachRor event

Hi support.
Depending on the cell value, I do the rowspan. This code is in a forEachRow loop.

So I make the last rowspan correctly, but the loop try to get the next Row id, and display the error '_cellindex is null '

How can I control this event?

for (var iCol=1; iCol < MAX_TOTAL_COLS ; iCol++){
{
     mygrid.forEachRow(function(id)
    {
        Upto= Number(str.substring(str.lastIndexOf('/') + 1 , str.length));
        mygrid.setRowspan(id,iCol,Number(Upto));
     })
}


Tkz
Answer posted by Support on Jul 31, 2008 10:08

With your current code you set rowspans for all cells in grid, this is pretty strange usecase , which is not supported.
If you need to set rowspans just for some rows you need not use forEachRow itterator