I have a request to get started with the KendoUI Grid network with a sorted column, and from there enable default sorting of columns and sorted desc parameters ... which means unsorted option. I mean, when the page is viewed for the first time, there is an icon that shows it sorted asc ... and if you click on the column heading, it goes into sorted desc, and then if you click again, it will be sorted by asc. Currently, the default behavior of Kendo is that a third click puts the grid in unsorted mode without sorting the icon. If this helps, my code is below:
$("#grid").kendoGrid({
dataSource: {
data: carList,
schema: {
model: {
fields: {
"Car": { type: "number" },
"Miles": { type: "number" }
}
}
},
sort: { field: "Miles", dir: "asc" }
},
height: 338,
scrollable: true,
sortable: true,
filterable: false,
pageable: false,
columns: [
{
field: "Car",
width: 40,
sortable: true,
hidden: false
},
{
field: "Miles",
width: 60,
sortable: true,
hidden: false
}
]
});
};
- , ? , - , , ? , !