split with multiline

Hi support,

I am using split functionality.

When I tried mygrid.enableMultiline(true); ,I am getting error.





this._fake.rowsAr[id] has no properties



Can we use both functionality at a time?

If you are using dhtmlxgrid 1.5 - it must work correctly.
Please be sure that enableMultiline command called before splitAt

    support@dhtmlx.com )

Thanks.
Here is my sequence of grid code.
Is this sequence is correct?

mygrid.setHeader(str);
mygrid.setInitWidths(Initwidths);
mygrid.setColAlign(ColAlign);
mygrid.setColTypes(ColTypes);
mygrid.enableResizing(ColResizing);
mygrid.enableMultiselect(true);
mygrid.enableCollSpan(true);
mygrid.enableMultiline(true);
mygrid.setOnEditCellHandler(doOnCellEdit);
mygrid.setOnRightClick(onGridRightClick);
mygrid.setOnKeyPressed(onGridKeyPressed);
mygrid.setOnEnterPressedHandler(onEnterPressedHandler);
mygrid.setOnHeaderClickHandler(onHeaderClick);
mygrid.attachHeader(Oahs[h]);
mygrid.init();    
mygrid.splitAt(2);        
mygrid.setColumnColor("#DDE1F7,#DDE1F7");
mygrid.enableEditEvents(true,false,true);
mygrid.enableRowspan(true);
for(var rind=0,rownum =4;rownum < 6;rownum++,rind++){    
    mygrid.addRow(‘row’+rownum,",0",rind);               
}
mygrid.selectCell(0,2);
mygrid.setSkin(“light”);
mygrid.setOnCheckHandler(doOnCheck);

Your code is correct, the only place which can cause problem
    mygrid.enableRowspan(true);

While grid able to sync sizes of separate row, it may not be able to sync the height or row correctly if it is a separate row in one part of grid and included in rowspan in other part of grid.
Also, the problem can occurs if you are including dynamic content inside cells, for example inserting HTML image inside cell without defining its sizes can cause problem, because the real height of row will be available only after image fully loaded, which can’t be detected by grid component.