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

Disable default selection

1 Answer 150 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 11 Feb 2013, 01:54 PM
Can you advice me, how to disable default selection in ListView in Chrome browser? When I open ListView in Chrome, the first item of ListView is selected by default. I was trying to call clearSelection on object created this way:
gListView = $("#listView").kendoListView({
    selectable: true,
    navigatable: true,
    dataSource: gDrawDataListView,
    template: kendo.template($("#template").html())
});
but when I was trying to call
gListView.clearSelection();
the object did not have this method.
What am I doing wrong?

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 13 Feb 2013, 11:48 AM
Hi Ivo,

I am not quite sure if I understand you correctly - there is no default selection in Kendo UI ListView (check this short screencast capture). Could you please elaborate a bit more?

On a side note you can clear the selection using the following code snippet:
// get a reference to the list view widget
var gListView = $("#listView").data("kendoListView");
//clear selected items
gListView.clearSelection();

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
Ivo
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or