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

Hierarchical grid with varying templates?

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 19 Feb 2016, 09:32 PM

My customer wants to display different nested row controls, depending on the several clickable cells in a row. So if the user clicks on the cell in column 1, a dialog allowing to change some data should appear. If the user clicks on the cell in column 2, a different view presenting some child records shall be displayed, etc. etc.

Are NestedView templates the way to go here? Can I replace the template with every postback?

Also, there are views required that concern all rows. Would it be possible to show those before row 0?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 24 Feb 2016, 12:55 PM
Hello Tim,

I am afraid that the behavior you describe is not available out of the box. In order to implement similar behavior you would need to use custom logic.

You can add a RadWindow control that will be opened when a cell in the grid is clicked. For opening the window you could use GridTemplateColumns with a Button. Depending on what button was clicked you can open the RadWIndow with corresponding contents.

For editing the grid you can use an approach similar to the one illustrated in the example below:



Regards,
Viktor Tachev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or