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

[Solved] Self-Reference and tree level

5 Answers 151 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ray
Top achievements
Rank 1
Ray asked on 02 Nov 2010, 02:40 AM
Is there an easy way to find out what level in the tree the current row is in any GridView event?

In the Self-Reference demo, I am trying to only display records without a parent at the 1st level.


Thanks,

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Nov 2010, 09:23 AM
Hi Ray,

In order to provide you with a workable solution, I would need more details about your exact requirements. How do you want you grid to look like and which of the records you want to display ?
 

Best wishes,
Maya
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
0
Ray
Top achievements
Rank 1
answered on 02 Nov 2010, 09:30 AM
Hi Maya, 

Thanks for your reply, as in your example for self-reference with GridView
http://demos.telerik.com/silverlight/#GridView/Hierarchy/SelfReference

In that case, I'd like see only "Andrew" and "Steven" (ReportsTo none) at the first level of the gridview. and the rest of people can be found under the person they report to.

Thanks,
Ray
0
Accepted
Maya
Telerik team
answered on 02 Nov 2010, 09:49 AM
Hello Ray,

Following up your requirements, I may suggest to you to take a look at our RadTreeListView Control. You may find detailed information in our online documentation too.
   

Greetings,
Maya
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
0
Ray
Top achievements
Rank 1
answered on 02 Nov 2010, 10:02 AM
Thanks Maya, that is a very good alternative,

However, I do like working with GridView since the example provided shows the self-reference features.
All I want is to be able hide some rows according to a condition in GridView in some event.

Is there a way using the GridView to accomplish the objective as to 
"
       See only "Andrew" and "Steven" (ReportsTo none) at the first level of the gridview.
        and the rest of people can be found under the person they report to. 
       The example is http://demos.telerik.com/silverlight/#GridView/Hierarchy/SelfReference
"

Much appreciated.
Ray
0
Accepted
Maya
Telerik team
answered on 02 Nov 2010, 12:29 PM
Hi Ray,

I am sending you a sample project that demonstrates a possible approach for achieving such a functionality. You may take a look at it and let me know if it corresponds to your requirements. 

Best wishes,
Maya
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
GridView
Asked by
Ray
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ray
Top achievements
Rank 1
Share this question
or