Context Menu on TreeView Angular with Keyboard navigation

5 posts, 0 answers
  1. Narendra
    Narendra avatar
    3 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 Link to this post

    Hi,

    We are using KendoUI Angular TreeView and we are showing the context menu on the tree view.
    We want to enable keyboard navigation for this context menu, can somebody please point us to examples..?

    code which shows treeview and context menu can be seen here

    Thanks!!

    Regards,
    Narendra
  2. Narendra
    Narendra avatar
    3 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 Link to this post

    also how can we figure out, which node was clicked.?
  3. Kendo UI is VS 2017 Ready
  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 27 Mar 2015 Link to this post

    Hi Narendra,

    I would recommend using the ContextMenu's open event to get the TreeView's dataItem as well as to set the focus. The latter will enable the keyboard navigation, as shown in this example.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Narendra
    Narendra avatar
    3 posts
    Member since:
    Mar 2015

    Posted 21 Apr 2015 in reply to Alexander Popov Link to this post

    Hi Alexander,

     

    Thanks for your reply and my apologies for getting back to you late. The example you have given is nice and works well but even after referring to your example I am struggling to understand how can we show/trigger right click menu, any thoughts or pointers..?

     

    Regards,

    Narendra

  6. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 23 Apr 2015 Link to this post

    Hi Narendra,

    In case you wish to programmatically show the ContextMenu, then I would suggest using its open method.

    Regards,
    Alexander Popov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready