See attached image. We must disable pinning of rows.
How can we achieve this? We've tried to disable all "Allow***" properties, but none gives us the desired behavior.
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 18 Mar 2013, 08:43 AM
Hello Kristoffer,
Thank you for writing.
To hide this menu item, you have to handle the ContextMenuOpening event of the grid, where you can access the menu items, find the one that you are looking for and set its Visibility state to Collapsed. Here you can see how to modify the default context menu in RadGridView: http://www.telerik.com/help/winforms/gridview-context-menus-modifying-the-default-context-menu.html.
I hope that the provided information addresses your question.
While this solution works, it would be nice to have a property (or set of properties) that allows customization of the ContextMenu. Trapping the event means that custom code has to run whenever the context menu is show. Not really needed if I know that I never want e.g. "Pinned state" enabled.
Just a suggestion.
0
Stefan
Telerik team
answered on 24 Dec 2013, 07:30 AM
Hi Martin,
Thank you for your suggestion.
For the time being, the ContextMenuOpening event is the one that should be used for customization of the context menu. However, if there is demand for introducing such properties, we will consider this in a future release.
Should you have any other questions or suggestions, do not hesitate to contact us.
Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>