Hierarchical grid with varying templates?

2 posts, 0 answers
  1. Tim
    Tim avatar
    7 posts
    Member since:
    Jul 2012

    Posted 19 Feb Link to this post

    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?

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 24 Feb Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top