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

Disable row pinning?

3 Answers 229 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 13 Mar 2013, 03:11 PM
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

Sort by
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.
 

Greetings,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Martin
Top achievements
Rank 1
answered on 23 Dec 2013, 07:17 PM
Hi,

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 >>
Tags
GridView
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Martin
Top achievements
Rank 1
Share this question
or