Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Asawari on May 04, 2009 05:41
open dhtmlx forum
SetColumnVisiblity in version 2.0

How shold the method setColumnHidden be used if the grid in loaded using xml?
Answer posted by Alex (support) on May 04, 2009 08:20

You can use the following method:

<rows>
 <head>
  <afterInit>
  <call command="setColumnHidden">
  <param>4</param>
  <param>1</param>
  </call>
  </afterInit> 
 </head>
 <row ...>
  ...
 </row>
 ...
</rows>

Here 4 is column index that must be hidden.