Disable Keyboard Navigation

5 posts, 0 answers
  1. Paul B
    Paul B avatar
    15 posts
    Member since:
    May 2013

    Posted 17 Jun 2014 Link to this post

    Is there a way to disable keyboard navigation in the RadListView control when it's in IconsView? I want to have other keys fire the KeyDown event (e.g. Del) but not the keyboard arrow keys.
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3835 posts

    Posted 20 Jun 2014 Link to this post

    Hello Paul,

    Thank you for writing.

    You can achieve your requirement by creating a custom RadListView and overriding its OnKeyDown event handler:
    public class CustomListView : RadListView
    {
        public override string ThemeClassName 
        {
            get
            {
                return typeof(RadListView).FullName; 
            }
        }
     
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyData == Keys.Left || e.KeyData == Keys.Right ||
                e.KeyData == Keys.Up || e.KeyData == Keys.Down)
            {
                return;
            }
            base.OnKeyDown(e);
        }
    }

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. Nidal
    Nidal avatar
    20 posts
    Member since:
    Apr 2019

    Posted 24 Apr 2019 Link to this post

    dear GeorgeI have the the the following list view (with name mylist.png image) by radlistview how i can make it collapsible (hamburger menu) like the menu in black and orange (demo and demo 1 images )
  4. Nidal
    Nidal avatar
    20 posts
    Member since:
    Apr 2019

    Posted 24 Apr 2019 in reply to Nidal Link to this post

    dear Dess | Tech Support Engineer, Sr. have the the the following list view (with name mylist.png image) by radlistview how i can make it collapsible (hamburger menu) like the menu in black and orange (demo and demo 1 images )
  5. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3835 posts

    Posted 25 Apr 2019 Link to this post

    Hello, Nidal,    

    The Hamburger Menu is a UX paradigm incorporating a collapsible navigation pane and a sidebar menu. It is used in the modern Windows 10 applications such as Groove, Mail and Calendar. The pane works as a top-level container of other controls added to the form. We decided to implement it inside the RadPageView and add a new view to it, the Navigation View. The new view also supports four different display modes covering various use cases: Auto, Minimal, Compact, and Expanded. Additional information is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/pageview/navigation-view/overview

    You can also refer to our Demo application >> PageView >> Navigation view example. The Demo application can be found in the installation folder of the suite.

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top