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

[Solved] Using Row details and Hierarchy property as the same time

3 Answers 109 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.
Alex Fan
Top achievements
Rank 1
Alex Fan asked on 22 Jul 2009, 04:13 AM

Hi,

 

when I tried to use "RowDetailsTemplate" and a Hierarchy Property(which is a sub grid) at the same time, I found that GridView didn't support this. But it worked quite well when I only had one of them.

 

Is it not supported yet? or there is some workaround that I missed?

 

Best Regards

Alex Fan

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Jul 2009, 08:12 AM
Hello Alex Fan,

When the grid is in hierarchical mode, row details are not supported by design, since they aim to be a replacement for the HierarchyChildTemplate. In other words, you can create a normal grid and in the row details template place another grid (child grid) which will effectively lead to a hierarchical organization. Please, let me know if this does not make sense or your scenario definitely requires both row details and HierarchyChildTemplate at the same time. We will then consider the options.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alex Fan
Top achievements
Rank 1
answered on 22 Jul 2009, 11:16 PM
Hi Ross

Thanks for your quick reply. I tried to have a nested GridView in the RowDetailsTemplate. The problem is GridView became very slow and gradually even slower and slower under that case. But it performed quite well if I removed the nested GridView and only showed row details. The testing data structure is like this:

"Order" class has 10 properties for ourter GridView. It contains a collection of "OrderLine" class object, which also contains 10 properties for nested GridView. No heavy calculation needed for retrieving those properties. I made up the data as 10 orders and each of them having 10 orderlines.

I also tried replacing nested GridView with normal DataGrid. It was faster at the beginning but had the same problem of turning slower and slower. At the end, either case will take about 2 second to display the row details on a quad cord 3G ram pc.

Do you have any hints about this? Thanks again.

Regards
Alex
0
Rossen Hristov
Telerik team
answered on 23 Jul 2009, 07:28 AM
Hello Alex Fan,

Can you please send us the sample project that you are testing with so that we can examine in on our end. You will need to open a separate support ticket and attach it there. Thanks in advance.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Alex Fan
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Alex Fan
Top achievements
Rank 1
Share this question
or