RadGrid with expandable Row which contains different Tabs

2 posts, 0 answers
  1. daddo
    daddo avatar
    4 posts
    Member since:
    Apr 2016

    Posted 05 Apr Link to this post

    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. 

  2. Stefan X1
    Admin
    Stefan X1 avatar
    523 posts

    Posted 08 Apr Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top