Problems recognizing selectable in listview

3 posts, 0 answers
  1. 100%
    100% avatar
    75 posts
    Member since:
    Apr 2013

    Posted 06 Mar 2014 Link to this post

    I am trying to set a listview selectable, but that gives me an error.
    My code:

    var lv = $('#lwTest');
     
    lv.kendoListView(
    {
      selectable: "single",
      template: "<li><span class='email'>${email}</span> <span style='font-size: 80%; font-weight: bold'>${role}</span></li>",
      dataSource: the_items
    });

    This gives me the following in firebug:

    TypeError: n.ui.Selectable is not a constructor

    If I omit selectable, the listview will initialize correctly, but will of course not have selectable items.
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 07 Mar 2014 Link to this post

    Hello,

    We are not sure what might cause this error. Can you create a sample where the error manifest itself so we can inspect it locally?

    One thing you could do is to make sure that all Kendo scripts are included correctly.

    Regards,
    Nikolay Rusev
    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
  4. 100%
    100% avatar
    75 posts
    Member since:
    Apr 2013

    Posted 07 Mar 2014 in reply to Nikolay Rusev Link to this post

    I am now getting it, I had to include kendo.selectable.min.js.
Back to Top