Categories | Question details Back To List | ||||||||
grid size vs grid column width hellow~ when i set what mygrid.setInitWidths("70,*,*,*,*,*,*,*") in your sample - 'pro_column_size.html' there are space on the right side. it's fine when i set what mygrid.setInitWidths("70,50,50,50,50,50,50,50"). just has problem set with '*'. please check this. thanks. Answer posted by Alex (support) on Jan 21, 2010 03:02 Hello, to calculate column sizes correctly it is better to use "*" only for one column. Please check the sample http://dhtmlx.com/docs/products/dhtmlxGrid/samples/10_grids_manipulations/03_grid_auto_width.html You can also define widths in percent. For example (for the pro_column_size.html): mygrid.setInitWidthsP("10,10,20,10,10,10,10,*"); Answer posted by hjshin on Jan 21, 2010 18:49 hello, sure...i checked this sample but our customer want to use '*' for several columns not only for one column. and there are any space. example.......like this.............mygrid.setInitWidths("50,*,*,*,*,*,*,*") i had to solve this problem. so i saw the source...dhtmlgrid.js and just updated this part and use this file. please check this!!
this.setColumnSizes=function(gridWidth){ if (ms < 0) this._setAutoResize() Attachments (1)
Answer posted by Stanislav (support) on Jan 22, 2010 02:11 It looks as good addition. We will include similar update in next version of grid. |