Categories | Question details Back To List | ||
Bug in setColumnHidden (FireFox) Hi There is a bug in setColumnHidden function in Firefox (ie 3.0.5) for grid with column width set as "*" (auto width). It produces unexpected results (i.e doesn't hide the header or the column remains hidden after enabling it back). When assigning a specific width to the column, it works as expected. Please let me know how to fix this. Thanks Answer posted by Support on Jan 22, 2009 06:14 Problem confirmed The issue not the bug in component , but weird behavior of FF, in some cases when hiding column doesn't cause change of total table size ( because auto-size columns compensate change ), FF 3 may just not repaint grid's area, which result in incorrect view. We will try to update code , to prevent incorrect behavior, but for now, as quick solution, you can add next code to the grid's init mygrid.attachEvent("onColumnHidden",function(ind){ if (!_isFF) return; mygrid.obj.border="1" window.setTimeout(function(){ mygrid.obj.border="0" },1); }) Answer posted by Gabriel on Jan 22, 2009 07:19 The code provided works fine for the grid (except blinking ) but the gird's header behaves the old way. Can you help please? Answer posted by Support on Jan 22, 2009 08:15 There is a slightly different solution which must not cause blinking mygrid.attachEvent("onColumnHidden",function(ind){ mygrid.entBox.style.border="0px solid red"; window.setTimeout(function(){ mygrid.entBox.style.border="0px solid green"; },1); }) Answer posted by Gabriel on Jan 22, 2009 08:23 Thanks a lot. The blinking is gone however the header's behaviour remains unexpected (doesn't hide/show header columns properly) Answer posted by Support on Jan 22, 2009 09:43 Unfortunately problem is not reconstructable locally ( the problem with data part of grid was reconstructable ) If issue still occurs for you - please send any kind of sample where problem can be reconstructed to support@dhtmlx.com |