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

GridBoundColumn text is blank space when visible=false

3 Answers 284 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 08 Apr 2013, 06:42 PM
I just updated my RadControls for ASP.NET AJAX, and am now having problems getting the cell text of GridBoundItems when visible is set to false.

item["NonVisibleColumnName"].Text is always returning a blank space ( ).

Has anyone run into this issue?

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 Apr 2013, 04:11 AM
Hi,

Please examine this sticky thread which explains breaking change in new version.
Breaking change: Hidden column cell text is not persisted in ViewState

Thanks,
Shinu
0
Jason
Top achievements
Rank 1
answered on 09 Apr 2013, 04:49 PM
Well that's embarrassing. Thanks!
0
Billy
Top achievements
Rank 1
answered on 09 Apr 2013, 05:06 PM
Don't feel bad, I came here because of the same thing. I ended up discovering the display="false" alternative.

Not sure if this is proper because it's not mentioned in the link above, but I think you might also be able to set the column visibility after databinding in codebehind like:

RadGrid1.MasterTableView.GetColumn("FirstName").Visible = false;

Tags
Grid
Asked by
Jason
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jason
Top achievements
Rank 1
Billy
Top achievements
Rank 1
Share this question
or