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

[Solved] Preview Row and Multiple Header in RadGrid

2 Answers 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Veenu
Top achievements
Rank 1
Veenu asked on 08 Jan 2010, 01:15 PM
Hi.

Please find the two attached snapshots of WebGrid control from Intersoft WebUI Control Library.
We're migrating from Intersoft to Telerik Library to get the Keyboard support feature requested by customers.
The question is regarding the two features shown from WebUI:
- to show one column as a hidden section (not load-on-demand) to be available on clicking the arrow (as shown in PreviewRow_WebUI.png), and
- to show a grouping of the headers with a TopHeader sitting on top of two SubHeaders in Grid.

Can this behaviour somehow be achieved in Telerik RadGrid?
If it is already supported, please tell me where I can find it or how ti can be done. And if not, customizations are most welcome.

Thanks and Regards,
Veenu Munjal

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 11 Jan 2010, 05:39 PM
Although it does not show just a single row with details, the following demo should help you out with your first question:

NestedViewTemplate Relations

Essentially you would have to define a NestedViewTemplate to adhere to whatever kind of layout you would want for this sub-item. The demo might be a bit complex for your particular implementation, but the overall logic should be the same.

As for your second question you may want to look into the Layout section of the online demos. Although I'm not quite sure how to replicate what you have in your screen shot there definitely is some potential to achieve special layouts within the RadGrid.
0
Princy
Top achievements
Rank 2
answered on 12 Jan 2010, 07:05 AM
Hello Veenu,

To display a preview row for each main row of your grid you could use the NestedViewTemplate of the MasterTableView as sduggested by Schlurk.

Also to display multiple headers under a main header you could make use of TemplateColumns in the grid and customise the HeaderTemplate accordingly. Here's a document which will provide you with a similar example:
Customizing with GridTemplateColumn

Hope this helps..
Princy.
Tags
Grid
Asked by
Veenu
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or