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

Disable Keyboard Navigation

4 Answers 200 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Paul B
Top achievements
Rank 2
Paul B asked on 17 Jun 2014, 06:47 PM
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.

4 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Jun 2014, 11:50 AM
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.
 
0
Nidal
Top achievements
Rank 1
answered on 24 Apr 2019, 03:26 PM
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 )
0
Nidal
Top achievements
Rank 1
answered on 24 Apr 2019, 03:28 PM
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 )
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Apr 2019, 08:26 AM
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.
Tags
ListView
Asked by
Paul B
Top achievements
Rank 2
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Nidal
Top achievements
Rank 1
Share this question
or