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

Header Context Menu Hidden Columns

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 11 Jun 2012, 08:29 AM

Hi,

I am using the HeaderContextMenu in my radgrid to show and hide the columns.  I want to save the users preference as to what columns they have visible.  I thought that this would be easy and I could just save the GridColumn.Display value.   But when I hide a column using the HeaderContextMenu the display value for that column is still true.

Where is the information regarding what columns have been hidden by the user using the HeaderContextMenu?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Jun 2012, 12:40 PM
Hello Mark,

You are observing this behavior since the context menu options hide the columns on client-side. Attached you will find a RadGrid web site where I demonstrated how to raise a server event on column hiding or showing. Once you have the modified information about the column's visibility, you could save it according to your preferences.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or