This is a migrated thread and some comments may be shown as answers.

Hidden Column Get Client Value

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aris
Top achievements
Rank 1
Aris asked on 15 Oct 2008, 10:33 AM
Hello,

is it possible to have GridColumn Visible="false", but be able to get its value with client code? Or what else i can do in order to hide the column but be able to access the data. I tried

<ItemStyle Width="0px" /> 
<FooterStyle Width="0px" /> 
<HeaderStyle Width="0px" /> 

but column is still visible

Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Oct 2008, 11:51 AM
Hello Aris,

You can access a column using the getDataKeyValue() function of the GridDataItem client-side object even if the column is not visibly bound to the grid.
Refer to ther following link to understand how to go about this.
Extracting key values client-side

Thanks
Princy.
0
Aris
Top achievements
Rank 1
answered on 15 Oct 2008, 11:51 AM
Don't bother i found it through forum!

EDIT:
We answered the same time key to my solution is
Display property of column set to false ,column is hidden but javascript still can get the value :)
Tags
Grid
Asked by
Aris
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Aris
Top achievements
Rank 1
Share this question
or