Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Valerie on Aug 29, 2008 08:07
open dhtmlx forum
Retrieve Value from Hidden Column

How do we hide the column of all rows using XML code for DHTMLXGrid. Also,how do we retrieve value from that hidden column?
Answer posted by Support on Aug 29, 2008 09:55

>>How do we hide the column of all rows using XML code 
If you are using dhtmlxgrid 1.6 you can specify visibility as part of grid config directly in XML 
           

<rows>
  <head>
  <column width="50" type="dyn" align="right" color="white" sort="str">Sales</column>
  <column width="150" type="ed" align="left" color="#d5f1ff" sort="str" hidden="true">Book Title</column>

Value can be retrievent in common way

var value = grid.cells(i,j).getValue();
i - row id
j - column index
This works for all columns, including hidden ones. 

Answer posted by Valerie on Sep 04, 2008 06:19
Thanks!