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

Hide Options in Header Contect Menu

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 08 Jun 2010, 07:00 PM
I am really starting to like the new header context menu. But, it has very limited options at this time. I'd like to limit my header context menus to only show the sorting and filtering options. These are great shortcuts!

There are too many issues with widths to allow grouping on every grid, and the show/hide columns is FAR too slow to be usable. I'd really like to see this not attempted with javascript and just postback to hide columns. I have one grid that the context menu won't even open at all becuase the javascript is just too slow. Browser keeps throwing the "do you want to keep running this script?" message.

If anyone could help me hide all the options except sorting and filtering I would really appriciate it!

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 14 Jun 2010, 09:12 AM
Hi James,

Please refer to the following forum post which provides example for the required functionality. Test it on your side and let me know if this helps.


Greetings,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
James
Top achievements
Rank 1
answered on 15 Jun 2010, 08:37 PM
The method described in the post worked fine.

The one problem I ran into was that when trying to remove the root node for the columns, a javascript error is thrown. I resolved this by making the root node's Text value an empty string. Then hid all the items inside. This produced the results I needed.

Thanks!
James
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
James
Top achievements
Rank 1
Share this question
or