Disable arrow keys

2 posts, 1 answers
  1. Mark
    Mark avatar
    37 posts
    Member since:
    Mar 2014

    Posted 14 Apr 2015 Link to this post


    What is the best way to disable Arrowkeys on a closed RadCombo?

    (open radcombo should still have arrow key functionality)


    I have tried to break selection in a Keypressing event without success,(it should also consider if radcombo is open or not) :


      <script type="text/javascript">

            function combokeypress(sender, args) {
                if (args.get_domEvent().keyCode == 40){

                    args.set_cancel(true); //not working!


      <telerik:RadComboBox ID="RadComboBox1" Runat="server" OnClientKeyPressing="combokeypress"  
                ResolvedRenderMode="Classic" TabIndex="1">



     Any hints?




  2. Answer
    Ivan Danchev
    Ivan Danchev avatar
    1264 posts

    Posted 16 Apr 2015 Link to this post


    The client-side OnClientKeyPressing event cannot be cancelled, that is why calling the set_cancel() method in its event handler when the DropDown is not opened would not have the desired effect.

    Ivan Danchev

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top