I have a ListView with enabled column sorting. I want to make a reset button which will reset the column sorting and the ListView will look same as on page loading. Similar to reloading the entire page, but just reloading the ListView.
This Is my code:
<button onclick="clearSorts()" style="float: right;" class="k-button" type="button" value="edit">Clear Sort</button>
$("#clearSorts()").click(function(e) {
dataSource.sort({});
});