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

Clientrowtemplate Mvc - Looping collection of entity

1 Answer 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Halil
Top achievements
Rank 1
Halil asked on 05 Apr 2013, 01:29 PM
Is it possible to create a clientrowtemplate with an entity model that includes a complex type of list to display some fields? I've created a server side rowtemplate but when I switch ajax on datasource, it doesn't work. I think it's expected. But how to create a complex template to display collections with ajax as a custom template?

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 Apr 2013, 02:34 PM
Hi Halil,


You are right, that a server row template will not work with Ajax binding. You should specify a ClientRowTemplate and use a for loop inside it to iterate over the list of items as any other collection. The following article describes how to use a for loop inside a client template.

 

All the best,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Halil
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or