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

Hide and Unhide column for Telerik grid

4 Answers 1302 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sirisha Peyyeti
Top achievements
Rank 1
Sirisha Peyyeti asked on 25 Mar 2011, 07:04 AM
Hi,

Environment:
Asp.net, C#, Telerik Rad Grid.

We have an requirement to hide and unhide the column of telerik rad grid  by the user.
How can be achieve in client side?

Appreciate your earliest reply.

Thanks,
Sreenivas

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Mar 2011, 07:53 AM
Hello Sirisha,

Try the following code snippet to hide/show columns in RadGrid.

ASPX:
<telerik:GridBoundColumn DataField="EmployeeID"  UniqueName="EmployeeID">
</telerik:GridBoundColumn>

C#:
(RadGrid1.MasterTableView.GetColumn("FirstName") as GridBoundColumn).Display = false;//hide GridBoundColumn
 
(RadGrid1.MasterTableView.GetColumn("FirstName") as GridBoundColumn).Display = true;//show GridBoundColumn

Thanks,
Princy.
0
Kranthi
Top achievements
Rank 1
answered on 06 Jul 2012, 05:25 PM
Hey can u tell me how to retrieve the hidden column value

my requirement is to retrive the values of those whose checkboxes are check under a button click event in radgrid.. pls help me out
0
Sk
Top achievements
Rank 1
answered on 18 Mar 2014, 11:20 AM
Hi Kranthi,
you can follow the code as attached in file,i will surely help you.




0
Freeman
Top achievements
Rank 1
answered on 15 Aug 2017, 09:33 PM
. This really helped me.
Tags
Grid
Asked by
Sirisha Peyyeti
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kranthi
Top achievements
Rank 1
Sk
Top achievements
Rank 1
Freeman
Top achievements
Rank 1
Share this question
or