Clientrowtemplate Mvc - Looping collection of entity

2 posts, 0 answers
  1. Halil
    Halil avatar
    2 posts
    Member since:
    Apr 2013

    Posted 05 Apr 2013 Link to this post

    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?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2284 posts

    Posted 05 Apr 2013 Link to this post

    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!
Back to Top