Get node index

2 posts, 0 answers
  1. Kris
    Kris avatar
    7 posts
    Member since:
    Aug 2013

    Posted 30 Jul 2014 Link to this post

    How to get the index for a given node within its parent node?
  2. Alexander Popov
    Alexander Popov avatar
    1411 posts

    Posted 01 Aug 2014 Link to this post

    Hi Kris,

    Similar behavior could be achieved by checking the index property of the dataItem corresponding to the <li> item. For example: 
    //Get the index of the currently selected node:
    var index = treeView.dataItem(;

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top