Remove a keyboard shortcut

3 posts, 1 answers
  1. Roman
    Roman avatar
    40 posts
    Member since:
    Jan 2009

    Posted 27 Jul 2010 Link to this post


    I couldn't find any information on how to manage the RadListBox's keyboard shortcuts. How can I remove e.g. the "Del"-Shortcut for deleting an item?

    Thanks in advance
  2. Answer
    Yana avatar
    4554 posts

    Posted 30 Jul 2010 Link to this post

    Hi Roman,

    I suggest you subscribe to OnClientDeleting event of the listbox:

    <telerik:RadListBox ID="lbxGroup" runat="server" Width="350px" TabIndex="1" AccessKey="y"
     AllowDelete="true" OnClientDeleting="clientDeleting">
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" />
            <telerik:RadListBoxItem runat="server" Text="RadListBoxItem3" />
            No data

    and in its handler cancel the event if the "del" button is clicked:

    function clientDeleting(sender, args) {
        if(args.get_domEvent().keyCode == 127)

    Kind regards,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roman
    Roman avatar
    40 posts
    Member since:
    Jan 2009

    Posted 02 Aug 2010 Link to this post

    Hello Yana

    I didn't have the idea of using keyCodes, thanks for your answer.

    Kind regards
Back to Top