$(".kendoddl").kendoDropDownList(); It worked fine until I added two drop-downs on the same page. They interfere with each other and stop working after a few clicks. Is using classes to initialize, as shown above, not supported?
<ul id="kendoMenu"> <li><a href="/">Thèmes</a> <ul> <li<a href="/Rapports/HEB_QUE">Hébergement au Québec 1</a></li> <li><a href="/Rapports/ENT_FRO">Entrées à la frontière</a></li> </ul> </li> <li>domirich <ul> <li><a href="/Account/LogOff">Déconnexion</a></li> </ul> </li> <li>Pilotage <ul> <li><a href="/Pilotage/Autorisations">Gestion des autorisations</a></li> <li><a href="/Pilotage/Sources">Gestion des sources</a></li> <li><a href="/Pilotage/Concepts">Gestion des thèmes</a></li> </ul> </li></ul><script type="text/javascript"> $(document).ready(function () { $("#kendoMenu").kendoMenu( { direction: "bottom" }); });</script>
var investorDataSource = new kendo.data.DataSource({
type: "json",
transport: {
read: {
url: "http://localhost//XXXX?Name=^" + $("#searchfor").val(),
dataType: "json"
},
parameterMap: function (options) {
return {
pageindex: options.page,
pagesize: options.take,
//orderby:options.sort[0].field
orderby: convertSort(options.sort)
}
}
},
schema: {
data: function (result) {
return result.Items || result;
},
total: function (result) {
//Note: this is != to the total no of records, but should work
return (result.PageSize * result.PageCount) || result.length || 0;
}
},
serverPaging: true,
serverSorting: true,
sort: { field: "Name", dir: "asc" },
serverFiltering: true,
pageSize: 10
});