RadTreeview OnClientKeyPressing not working

2 posts, 0 answers
  1. Vsoni
    Vsoni avatar
    9 posts
    Member since:
    Oct 2013

    Posted 15 May 2014 Link to this post

    I want to  delete a selected node on delete key press using OnClientKeyPressing event.
    But its still not working after setting the tab to treeview.

  2. Nencho
    Nencho avatar
    1446 posts

    Posted 20 May 2014 Link to this post

    Hello Vsoni,

    I had performed some local tests, but is seems that the event is correctly triggered and the nodes are properly deleted. Here is the implementation of the OnClientKeyPressing client-side event, that I had used at my end. In addition, please make sure that you have your RadTreeView configured with any TabIndex set:

    <script type="text/javascript">
            function OnClientKeyPressing(sender, eventArgs) {
                var node = eventArgs.get_node();
                var key = eventArgs.get_domEvent().keyCode;
                if (key == "127")


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top