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

Expand grid row to expose additional fields of same record

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 01 May 2014, 06:06 PM
I understand how to create a grid with a detail template that displays *related* detail data, but I need to do something slightly different. The scenario is that I have a grid with a handful of fields displayed on the row, I would like to expand the row to show the rest of the fields in a "card view" under the expanded row. Since I already have the data in the grid, how can I achieve the desired result with the least amount of data retrieval from my controller (I am using MVC/Razor and the Kendo MVC wrappers) Any advice on the best way to do this would be appreciated. Thanks.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 05 May 2014, 08:48 AM
Hello Peter,

Inside the detail template you should have reference to the complete model that was send from the server. Could you please elaborate what exactly is the piece that you are missing?

http://demos.telerik.com/kendo-ui/web/grid/detailtemplate.html

Check the information under the Contact Information tab in the detail template, it is coming from the main model.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or