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

RadGrid with expandable Row which contains different Tabs

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
daddo
Top achievements
Rank 1
daddo asked on 05 Apr 2016, 06:00 PM

Hello,

I'm pretty new at telerik and I'm trying to get something like in the picture but I have no idea how to do that because RadGrid doesn't support Content. I have a RadGrid (let's call it Main RadGrid) which will only have one row. This Row should be expandable and shoud contain Tabs (see picture). Each of these tabs should have their own RadGrid with predefinded columns. And you should be able to Click on the + Tab above and add your own tab with RagGrid in it. The calculations from these Tabs should be trasfered into Main RadGrid (with one row) and populate it. It doesn't matter for now how the calculations are made it is only the visual thing. The first thing I don't know how to do is to create RadGrid which has one empty Row on initialisation. Then how to make this row expandable to cointain Tabs. etc...When I try to put something into RadGridView (other object) it says it doesn't support content. Thank you for your help. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Apr 2016, 10:27 AM
Hello,

You should be able to define a RadGridView with one empty row, by adding only one item with unset properties to its Source collection.

As for expanding the row, you should be able to achieve this requirement by using the RowDetails mechanism of the control. By defining a custom RowDetails Template you can place a RadTabControl and RadGridView instances within it as per your needs.

As for transferring data from the RowDetails to the parent grid, you should implement this on data level, as the control cannot be aware what is defined within a custom RowDetails Template. You may find the Find a control in RowDetails Template topic useful on this matter.

You can also check out the Hierarchy support of the control and the Custom Hierarchy WPF demo.

I hope you find these resources helpful.

Regards,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
daddo
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or