Several users here have expressed interest in modifying the main grid in my application so that they can set which columns to display and how wide they are.
I think I have enough of a handle on the grid to implement something like this but I was wondering if there were any demos along this line. (To avoid re-inventing the wheel.)
I think I have enough of a handle on the grid to implement something like this but I was wondering if there were any demos along this line. (To avoid re-inventing the wheel.)
5 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 26 Feb 2013, 06:13 AM
Hi,
You can show/hide some of the grid columns based on the end user's preferences by setting EnableHeaderContextMenu property of the RadGrid.If you want the columns in your grid to be resizable, set the ClientSettings.Resizing.AllowColumnResize property to True. Please check the following help documentation for more details.
Resizing Columns
Header Context Menu for Column Operations
Thanks,
Shinu.
You can show/hide some of the grid columns based on the end user's preferences by setting EnableHeaderContextMenu property of the RadGrid.If you want the columns in your grid to be resizable, set the ClientSettings.Resizing.AllowColumnResize property to True. Please check the following help documentation for more details.
Resizing Columns
Header Context Menu for Column Operations
Thanks,
Shinu.
0
Boris
Top achievements
Rank 1
answered on 26 Feb 2013, 02:01 PM
Resizing is easy. However, I was not aware of the Header Context Menu. It's a fantastic feature, at least as far as it goes.
However what I'm not seeing so far is any sort of event that would fire when the column checkbox is checked/unchecked. Or maybe the documentation hasn't sunk in enough yet. (Get a handle to each item and treat it as a checkbox control? I need to be able to save the settings.)
Thanks!
However what I'm not seeing so far is any sort of event that would fire when the column checkbox is checked/unchecked. Or maybe the documentation hasn't sunk in enough yet. (Get a handle to each item and treat it as a checkbox control? I need to be able to save the settings.)
Thanks!
0
Hello Boris,
You can use the following events to handle this functionality - OnColumnShowing OnColumnShown, OnColumnHiding, OnColumnHidden.
Additionally, you can hide or show a given column using a client-side method:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-hidecolumn.html
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-showcolumn.html
Hope this helps.
All the best,
Eyup
the Telerik team
You can use the following events to handle this functionality - OnColumnShowing OnColumnShown, OnColumnHiding, OnColumnHidden.
Additionally, you can hide or show a given column using a client-side method:
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-hidecolumn.html
http://www.telerik.com/help/aspnet-ajax/grid-gridtableview-showcolumn.html
Hope this helps.
All the best,
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.
0
Boris
Top achievements
Rank 1
answered on 28 Feb 2013, 02:11 PM
Not absolutely sure. It does give me some new ideas. I'll have to try it out when I have the time.
Thanks.
Thanks.
0
Hello Boris,
Give them a try and feel free to share the result with us.
Greetings,
Eyup
the Telerik team
Give them a try and feel free to share the result with us.
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.
