Categories | Question details Back To List | ||
:: DHX Grid :: setSizes not working DHX Version: dhtmlxSuite 2009 Rel.1 (DHTMLX 2.1) Professional edition build 90226/90316 DHX Grid Version: dhtmlxGrid v.2.1 Professional edition build 90316 Hi, The setSizes is not working as expected even after writing following. libGrid.setSizes(); libGrid.obj.border=1; libGrid.obj.border=0; I don't wish to show scroll bars IF it is not needed o.w if needed then its fine. Also I have written this. libGrid.objBox.style.overflowX = "auto"; libGrid.objBox.style.overflowY = "auto"; Answer posted by dhxSupport on Sep 09, 2009 01:05 To disable scrollbars you should not use libGrid.obj.border=1; libGrid.obj.border=0; You can just enable auto width or auto height in grid: mygrid.enableAutoWidth(true) mygrid.enableAutoHeight(true) Answer posted by Tejas on Sep 09, 2009 04:03 Hi there, It is still not working :( Video : http://www.4shared.com/file/131353150/cb127446/Grid_SetSizes.html Please help !!! Answer posted by Tejas on Sep 09, 2009 04:07 Hi there, Just one more thing. Suppose I have written libGrid.enableAutoHeight(true,"500",true); Its not even going till 500px. Answer posted by dhxSupport on Sep 09, 2009 06:37 You asked this question to the support@dhtmlx.com and we answered that problem is in using custom css for the grid cells. Have you received this answer? If you need to implement multi line cells in your grid you can just use multi line functionality: mygrid.enableMultiline(true) Please be careful with using custom css in grid. Most of the desired functionality can be implemented with API. You can check updated dhtmlxGrid documentation here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:toc Answer posted by Tejas on Sep 09, 2009 08:18 Hi there, Even after removing custom css for cell, I m getting this issue. In v 1.6 it was working perfectly but in 2.1 it is not. Answer posted by Tejas on Sep 15, 2009 01:49 Hi there, I found a way, call setSizes after some miliseconds. Use setTimeout for this. |