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

[Solved] Customize Column Names in ColumnContextMenu for MVC Telerik

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ed
Top achievements
Rank 1
ed asked on 26 Feb 2013, 03:21 PM
I have a MVC Telerik Grid. The grid have 3 columns that are invisible to the user. I have a button called "Edit Columns" that will trigger ColumnContextMenu. How to have the ColumnContext Menu not to have the 3 column names that are invisible not to be listed in the menu dropdown.

Please see the attached file. I would like to remove the 3 checkboxes / columns (Status Id, Lien Holder Id and Salvage Id) from the ColumnContextMenu. How do I do this?

Your feedback is much appreciated.

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 01 Mar 2013, 10:20 AM
Hi,

You can configure a column not to be included in the context menu via the IncludeInContextMenu column method:

columns.Bound(p => p.PropertyName).Hidden(true).IncludeInContextMenu(false)
Regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
ed
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or