Categories | Question details Back To List | ||
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'); Answer posted by dhxSupport on Aug 26, 2009 08:58 setColSorting() and enableMultiline() method should be called before grid initialization: <table name="grid" id="laftTable" gridWidth="800px" gridHeight="300px" onbeforeinit="doOnBeforeInit()" > ... 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 <table> name. |