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

Need Dynamically row binding in TileLayout

1 Answer 444 Views
TileLayout
This is a migrated thread and some comments may be shown as answers.
Asad
Top achievements
Rank 1
Veteran
Asad asked on 16 Apr 2021, 10:23 PM

Dear Admin,

I need to bind dynamically data model one by one in kendo title layout. I couldn't found any data source binding or any other ajax binding.

i have get list from controller in model collection i couldn't bind data using bodytemplate or BodyTemplateId.

Any one help me? I have share attached file with you to understand my code and help me for better solution.

 

Please provide solution in .net core because i am using .net core 3.1

 

 

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 22 Apr 2021, 07:36 AM

Hello,

Currently the TileLayout only supports client templates. That said a possible solution would be to:

1. Move the TileLayout outside the 'if' that checks for the model items

2. Inside the for loop create script tags that represent templates as shown in this demo

3. Use the setOptions method and pass the templates to the tilelayout containers

Regards,
Angel Petrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TileLayout
Asked by
Asad
Top achievements
Rank 1
Veteran
Answers by
Angel Petrov
Telerik team
Share this question
or