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

Populating with a six level hierarchy

3 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Johan Wibling
Top achievements
Rank 1
Johan Wibling asked on 19 May 2010, 04:25 PM
Hello there,

Do the gridview support making a six level hierarchy in an easy way? 

Right now I'm setting my top data set as ItemsSource and then do a lot of child table definitions. To be able to remove GroupPanel and ColumnHeaders in my child nodes I'm listening on the DataLoading event casting the sender to a GridViewControl. For getting all the child column I have set the AutoGenerateColumns property to true. But I need to remove some of them so I also listening for AutoGeneratingColumn event. Doing this seems a little bit odd!

Another question is if I'm able to update the data at the bottom node in the gridview from a database without destroying the expanded hieararch made by the user?

Am I correct in my assumption that the gridview only support a two level hierarchy in a good manner.

Best wishes from Johan

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 May 2010, 08:15 AM
Hi Johan,

Actually the grid can have unlimited levels of hierarchy - you can check this thread for example. The application is for Silverlight however the approach can be used in WPF as well.

Sincerely yours,
Vlad
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
Johan Wibling
Top achievements
Rank 1
answered on 20 May 2010, 02:17 PM
Hello Vlad and thanks for the response.

I had some problem with opening the Silverlight solution. I'm using VS9 so there shouldn't be any problem.
The error message was: Couldn't open project file SilverlightApplication.csproj. The project type is not supported by this installation.

Is there a way I could get my hands on a WPF-example with a huge hierarchy?

Regards
Johan
0
Vlad
Telerik team
answered on 20 May 2010, 02:20 PM
Hello Johan,

You can check Mainpage.xaml + cs for more info about the implementation.

Kind regards,
Vlad
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
Johan Wibling
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Johan Wibling
Top achievements
Rank 1
Share this question
or