Disable row pinning?

4 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 13 Mar 2013 Link to this post

    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.
  2. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 18 Mar 2013 Link to this post

    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.
  3. Martin
    Martin avatar
    3 posts
    Member since:
    Dec 2013

    Posted 23 Dec 2013 Link to this post

    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.
  4. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 24 Dec 2013 Link to this post

    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 >>
Back to Top