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

Nested grids with aligned rows and columns

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven Harrap
Top achievements
Rank 2
Steven Harrap asked on 27 Apr 2010, 01:58 AM
Hi there

I am looking at using a RadGrid to display complexe table of figures. The table is made up of Questions in the left column, people along the top row and, answers in the middle, and then calculated totals around the right and bottom. The questions are grouped into related categories and they come from a database source but there will never be many questions so they should not be paged. The people come from a database source and there will be many people so the user should be able to page through them. I have a business layer to generate the row and colum totals.

I expect the RadGrid will get data from datasets that I supply to it as it executes its "on data source bind" and "on data source item bind" events. The examples I have seen all appear to use nested tables that "pop out" in sub areas but I need mine to tightly follow the row and column layouts (ie not be sub tables). The attached image is how I need to provide the layout.

My instinct is to use to use nested repeaters but the RadGrid has worked so well for other parts of my project. Can you suggest an example that is similar to this or a method of RadGrid construction that can handle this?

Thanks,
Steven. 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 30 Apr 2010, 06:01 AM
Hi Steven,

Basically, even if you use a template structure, or a grouping, the expand collapse elements can be hidden. A similar approach is used in this topic:

http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecords.html

Other than this, the layout of the control seems pretty standard.
I hope this gets you started properly.

Kind regards,
Yavor
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
Steven Harrap
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or