Defined instead of inline

2 posts, 1 answers
  1. Voss
    Voss avatar
    11 posts
    Member since:
    Jul 2014

    Posted 20 Aug 2014 Link to this post

    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.
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 22 Aug 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top