Selected DataItem

2 posts, 0 answers
  1. Yo
    Yo avatar
    3 posts
    Member since:
    May 2018

    Posted 21 Aug 2018 Link to this post

    In the change event, is there any way to get the underlying data item of the selected node?

    For a treeview control we can get the data item with something like this in the select event:

    var dataItem = myTree.dataItem(e.node);

    However, there's no "node" attribute in the change event for DropDownTree.

    How do we do this?

  2. Ivan Danchev
    Ivan Danchev avatar
    2025 posts

    Posted 23 Aug 2018 Link to this post


    The DropDownTree has a TreeView embedded in itself. Therefore you can attach a select event handler to the embedded TreeView as shown in this dojo example, since the DropDownTree's own change event does not hold information on the selected node.

    Ivan Danchev
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top