Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Feb 03, 2009 12:55
open dhtmlx forum
setcolumnhidden bug

Hi

we have a grid with 15 columns in it. we then have a dhtmlx menu which has a list of those column in a drop down menu item with a check box next to each one. the user can select the column to hide / show it.

we use the setColumnHidden function to hide and show the columns - we are noticing a very strange behaviour in this.

if you set up the same thing and then begin clicking the checkboxes (turn a few off, then turn a few on etc...) you will notice after a little while that it stops functioning as it should - its starts placing the cells in incorrect positions and becomes a mess...

can you replicate this bug, if not i will send you a sample?

thanks

richard
Answer posted by Support on Feb 04, 2009 03:24
Unfortunately issue can't be reconstructed locally. 
Please be sure that you not using setColumnHidden against columns with colspan. ( if you hiding column which included in colspan - it may result in different visual errors ) 

If issue still occurs for you - please provide any kind of sample where problem can be reconstructed. 
Answer posted on Feb 04, 2009 06:39
i managed to find out the bug occurs if you make the width of one of the columns '*' with a min width assigned to that column.

i fixed it by assigning it a width instead of a *- not really what we want though

thanks
Answer posted by Support on Feb 04, 2009 07:23
There are two known issue with hidden columns with size defined as "*"
 - column size may be incorrect after making column back visible ( was fixed in latest build 81107 )
 - FF has bug in visualization when columns with auto-size shown|hidden ( the dom updated correctly , but browser "forgot" to repaint area ) , temporary workaround can be checked here http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=7484&ssr=yes&s=hidden%20column
       
Answer posted on Feb 04, 2009 07:31
thanks