onContextMenu for TreeView

3 posts, 0 answers
  1. Richard
    Richard avatar
    3 posts
    Member since:
    Jan 2020

    Posted 18 Jul 2020 Link to this post

    Hi all,

    I'm working with the TreeView component and it only seems to have an onItemClick event. Does anyone know how to listen for an onContextMenu event so that I can open a menu for with some extra actions for the tree?

    Any help is appreciated. Thanks.

  2. Richard
    Richard avatar
    3 posts
    Member since:
    Jan 2020

    Posted 20 Jul 2020 in reply to Richard Link to this post

    Well I figured it out. Looks like you need to use the item TreeViewProp and then add an onContextMenu to whatever element you return there.
  3. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 21 Jul 2020 Link to this post

    Hello, Richard,

    I`m glad to hear that a solution is found.

    We also have an example made on a possible approach and include our Popup and Menu component to how a ContextMenu over.

    I have attached the example for reference.

    Regards,
    Stefan
    Progress Telerik

Back to Top