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

Grid: how to use a table-like layout for 1 record inside Detail Grid?

2 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 21 Nov 2018, 09:02 AM

Hi there,

I have a Master-Detail Grid setup. Inside the Detail template I use a Tabstrip with 5 items.

Inside each of the Tabstrip items I want to show some detail information about the selected (expanded) Master row. Here's my problem: the detail record contains about 30 columns, 27 of them must be readonly while the rest must be editable (hence the choice for yet another Grid). The default grid layout is horizontal, so I get one very wide horizontal row. Because of my screen real estate I want to show all these details in a table-like manner like 3 columns, 9 rows, last row for all the editable items.

Can you give me some advice and sample code how to handle this?

Best,

Peter

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 21 Nov 2018, 12:47 PM
I'm sorry, I have to look at this further.
https://www.telerik.com/forums/bind-table-items-to-grid-data-inside-tabstrip
0
Viktor Tachev
Telerik team
answered on 23 Nov 2018, 08:35 AM
Hi Peter,

By default the Grid displays the data as it is passed from the remote service. It does not alter its structure. In order to implement the behavior you describe the data should be transposed in order for the columns to be shown as rows. The blog post below describes how this functionality can be implemented. 


Give the approach a try and let me know how it works for you.

Regards,
Viktor Tachev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or