Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Apr 30, 2008 07:05
open dhtmlx forum
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?
Answer posted by Support on Apr 30, 2008 09:24
If you are using dhtmlxgrid 1.5 - it must work correctly.
Please be sure that enableMultiline command called before splitAt

    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/frozen_columns/pro_split_multiline.html?un=1209573633000

If problem still occurs for you - please provide any kind of the sample where problem can be reconstructed ( you can send it directly to support@dhtmlx.com )
Answer posted by Prasad on May 02, 2008 10:45
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);
Answer posted by Support on May 03, 2008 01:52
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.