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

Problems recognizing selectable in listview

2 Answers 49 Views
ListView
This is a migrated thread and some comments may be shown as answers.
100%
Top achievements
Rank 1
100% asked on 06 Mar 2014, 03:28 PM
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 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 07 Mar 2014, 06:59 AM
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!
0
100%
Top achievements
Rank 1
answered on 07 Mar 2014, 05:19 PM
I am now getting it, I had to include kendo.selectable.min.js.
Tags
ListView
Asked by
100%
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
100%
Top achievements
Rank 1
Share this question
or