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

Dynamic detail row template

1 Answer 445 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ling
Top achievements
Rank 1
Ling asked on 22 Aug 2014, 11:30 PM
Hi,
Is it possible to change detail row template based on the data in the grid?
For example, if I have a product column, I would like to use different detail templates for different products.Is that possible?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 25 Aug 2014, 12:11 PM
Hello Ling,


In the current case you could include conditional logic inside the template and display different content, depending on the model values. I have demonstrated the approach in the following example.

I wish you a great day!

Regards,
Dimiter Madjarov
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
Ling
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or