Grid from HTML table do not do not showing Multiline

Dear Sir/ Madam,



I am using dhtmlxGride in my project, where I have Initialized Grid from HTML table using javascript, but it not showing multiline in gride cell. Please refer below code.



var leftGrid = new dhtmlXGridFromTable(‘laftTable’);

leftGrid.setImagePath(“dhtmlx/dhtmlxTreeGride/codebase/imgs/icons_books/”);

leftGrid.setColSorting(“str,int,int,str,int,int,int,str,int,int”);

leftGrid.enableMultiline(true);

leftGrid.sortRows(4, ‘int’, ‘des’)

leftGrid.enableEditEvents(false, false, ‘disable’);

setColSorting() and enableMultiline() method should be called before grid initialization:



function doOnBeforeInit(){
grid.enableMultiline(true);
grid.setColSorting(“str,int,int,str,int,int,int,str,int,int”);
}

Please note inside onBeforeInit() function you can refer to grid using
name.