RadCollapsiblePanel and Shortcuts

3 posts, 1 answers
  1. Abbas
    Abbas avatar
    13 posts
    Member since:
    Oct 2012

    Posted 25 Jan Link to this post

    Hi Telerik team,

    What would be the best way to assign a shortcut key to a CollapsiblePanel?

     The down below lines did not work for me!.

    RadShortcut shortcut1 = new RadShortcut(Keys.None, Keys.F4);<br>            this.radCollapsiblePanel1.RootElement.Shortcuts.Add(shortcut1);<br>or<br>            this.radCollapsiblePanel1.CollapsiblePanelElement.Shortcuts.Add(shortcut1);<br>


  2. Answer
    Dess avatar
    1607 posts

    Posted 26 Jan Link to this post

    Hello Abbas,

    Thank you for writing.

    Our Assigning Global RadShortcuts help article demonstrates a sample approach how to add shortcuts which will generate a Click event for that item, allowing you to perform specific action, associated with that item: http://docs.telerik.com/devtools/winforms/shortcuts/assigning-global-radshortcuts

    Here is a sample code snippet demonstrating how to assign a shortcut to the collapse/expand button in RadCollapsiblePanel:
    RadShortcut shortcut1 = new RadShortcut(Keys.None, Keys.F4);

    I hope this information helps. Should you have further questions I would be glad to help.
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Abbas
    Abbas avatar
    13 posts
    Member since:
    Oct 2012

    Posted 26 Jan Link to this post

    Thanks a lot. :)
Back to Top