Hi
In my example below I took your demo for multiple sorting (good one!) and created a button with which I can change the sorting type.
http://dojo.telerik.com/ARaMA
I am refreshing the grid after changing the sorting type, but the grid does not seem to refresh properly.
I have variables initially set to "multiple" and true (for multiple sort as per your example)
sortable: {
mode: sortmode,
allowUnsort: sortunsort
},
.. and I change them on button click so "single" and false and then do
$('#multipleSort').data('kendoGrid').dataSource.read();
$('#multipleSort').data('kendoGrid').refresh();
..which does not properly update.
I also tried changing
$('#multipleSort').data('kendoGrid').options.sortable.mode = "single";
$('#multipleSort').data('kendoGrid').options.sortable.allowUnsort = false;
but again I do not update correctly because it does have no effect, even though it is actually set.
Many thanks
In my example below I took your demo for multiple sorting (good one!) and created a button with which I can change the sorting type.
http://dojo.telerik.com/ARaMA
I am refreshing the grid after changing the sorting type, but the grid does not seem to refresh properly.
I have variables initially set to "multiple" and true (for multiple sort as per your example)
sortable: {
mode: sortmode,
allowUnsort: sortunsort
},
.. and I change them on button click so "single" and false and then do
$('#multipleSort').data('kendoGrid').dataSource.read();
$('#multipleSort').data('kendoGrid').refresh();
..which does not properly update.
I also tried changing
$('#multipleSort').data('kendoGrid').options.sortable.mode = "single";
$('#multipleSort').data('kendoGrid').options.sortable.allowUnsort = false;
but again I do not update correctly because it does have no effect, even though it is actually set.
Many thanks