Self-referencing hierarchy

2 posts, 0 answers
  1. Christian
    Christian avatar
    112 posts
    Member since:
    May 2010

    Posted 15 Sep 2010 Link to this post

    Dear Support-Team

    How can I get the (hierarchical) index of the current row and the the dataitem on client side (javascript) on a Self-referencing hierarchy?
    If I try args.get_itemIndexHierarchical(); I get a hierarchical string like "0:0_0:0_0". How can I extract the row index? Is their a build in function? And how get I the right master or detail table on which the current row index acts?

    A example would be very helpful.

    Thanks in advanced.

    KInd regards
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 15 Sep 2010 Link to this post

    Hi Uwe,

    Indeed, the item index hierarchical you mentioned described in which detail table is the items and what is its index. So the item with ItemIndexHierarchical "0:0_0:0_0" is:

    - ItemIndex 0
      - DetailTable 0
        - ItemIndex 0 
          - DetailTable 0 
            - ItemIndex 0

    Please find more information in the below article:

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top