Treeview navigation with arrow keys and related questions

3 posts, 0 answers
  1. Mo
    Mo avatar
    5 posts
    Member since:
    Aug 2012

    Posted 02 Aug 2012 Link to this post

    I am currently in the eval stage and my company will most likely purchase the product in the near future.

    I have two questions and hoping for quick answers thinking someone must have done similar things.

    1. I have a tree view in one pane and some fields in the second pane that are related to the selected item in the treeview. Each node click refreshes the field values in the second pane. Clicking on each node causes a partial post back so it can refresh the fields in the second pane - this is expected. However, it doesn't retain the focus and therefore no longer allows arrow-key navigation until focus is manually moved to it.

    2. When navigating by the arrow key, I have to hit Enter to actually select the node and to fire the server side click event. Is it possible to select the node and fire the even on just the up-down keys instead of having to hit Enter to select a node?

    Thank you so much in advance
  2. Mo
    Mo avatar
    5 posts
    Member since:
    Aug 2012

    Posted 02 Aug 2012 Link to this post

    Ok - I resolved the first issue by calling a javascript function (to set the focus) from the server side node click. Can someone help me with #2?

    thanks in advance
  3. Plamen
    Plamen avatar
    3055 posts

    Posted 07 Aug 2012 Link to this post


    You can use the OnClientKeyPressing event and  on click of the desired keys to perform the desired functionality. If you need to call a server code you can use Ajax Request to do it as described in this help topic.

    Hope this will be helpful.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top