This is a migrated thread and some comments may be shown as answers.

Self-referencing hierarchy

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 15 Sep 2010, 10:22 AM
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
Christian

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 15 Sep 2010, 01:01 PM
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:

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

Please find more information in the below article:
http://www.telerik.com/help/aspnet-ajax/grdunderstandinghierarchy.html

Sincerely yours,
Iana
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
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or