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

Defined instead of inline

1 Answer 51 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Voss
Top achievements
Rank 1
Voss asked on 20 Aug 2014, 03:03 PM
How would I assign a defined template instead of using the inline template for a list view?

$("#serversLineup").kendoListView({
       dataSource: dataServersOnFloor,
       template: "<div data-uid='#:uid#' data-name='#: Name #' class='dragClass' data-id='#: Id #' data-is-lineup='#: IsOnFloor #'>#: Name #</div>"
   });

thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 22 Aug 2014, 07:55 AM
Hello,

if by a 'defined' template you mean template in a script tag, then my may check this demo source code for a sample implementation.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Templates
Asked by
Voss
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or