Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by JP on Oct 15, 2009 08:02
open dhtmlx forum
Column freeze functionality not working in case grid header data is sent through XML

Hi
In our application the grid header is sent through xml instead of using static call dhtmlxgrid.setHeader. The column freeze functionality when implemented using dhtmlxgrid.splitAt() or using
<afterInit>
<call command="splitAt">
<param>2</param>
</call>
</afterInit>
in the <head> tag gives error "this.hdr.rows[1] is undefined". the dhtmlx version is 1.5 build 71114. the freeze works correctly during initial loading i,e the jsp page is refreshed. but after subsequent call to dhtmlxgrid.clearAll() and dhtmlxgrid.xmlLoader.loadXML the above error is thrown.
Answer posted by dhxSupport on Oct 15, 2009 08:08
The splitAt must be executed only after defining of structure, but before data loading. After applying of the split mode to the grid, it is not possible to recreate the grid structure (reload the grid with a different structure). Such grid can be only destructed.
Please find more information about splitAt() usage here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:split_mode&s[]=splitat