Categories | Question details Back To List | ||||||||||||||
Colspan and enableSmartRendering Hi, Is it possible to activate colspan with enableSmartRendering and dhtmlXGridFromTable? I believe that doesn't exist great problems because it is the same line. I understand that the rowspan is much more complicated. Best regards, CHW Answer posted by Support on Jun 13, 2008 02:25 Both modes compatible and can work in same time ( unfortunately there is no online samples, but there are known working implementation of such behavior ) Answer posted by CHW on Jun 14, 2008 10:25 Hi, It follows a simple test enclosed. Only 3 lines exist with colspan, lines of total. Colspan with dhtmlXGridFromTable and enableSmartRendering don't work! Which is my mistake??? Best regards, CHW Attachments (1)
Answer posted by Support on Jun 16, 2008 05:32 As I mentioned previously, in case of loading from HTML table feature works not so smoothly. Please try to use attached js file instead of original one - with it colspans must be taken from source table correctly. Also during grid init colspans must be enabled. <TABLE id="gridbox" name="mygrid" class="dhtmlxGrid" onbeforeinit="mygrid.enableSmartRendering(true);mygrid.enableColSpan(true)" .... Attachments (1)
Answer posted by CHW on Jun 16, 2008 09:15 Hi, He got better. But in the rows with colspan the last column is not formatted correctly! See the previous example. Put mygrid.enableColSpan(true) in <TABLE. Best regards, CHW Answer posted by CHW on Jun 16, 2008 11:44 Hi, Test above done in the IE version 6. I tested, the example, in the Mozilla Firefox version 2.0.0.9 Incorrect formatting in all the grid. Best regards, CHW Answer posted by Support on Jun 17, 2008 05:00 >>I tested, the example, in the Mozilla Firefox version 2.0.0.9 When previously attached file used, and enableColSpan command executed the layout and colspans correct in both browsers. The TD coloring differs, but while importing from Table grid preservs the cell values, but it ignores used cell attributes ( such as bgColor ) - this is expected behavior. |