New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

clearSort

Method which clears the sort expression for a specific column or all sort expressions for the TableView object if no argument is passed.

clearSort(), clearSort(fieldName)
fieldName String The DataField of the column whose sort expression should be cleared.

Example:

function clearSortExpressions() {
    var grid = $find("<%=RadGrid1.ClientID %>");
    var masterTableView = grid.get_masterTableView();
    masterTableView.clearSort();
}

function clearColumnSortExpression() {
    var grid = $find("<%=RadGrid1.ClientID %>");
    var masterTableView = grid.get_masterTableView();
    masterTableView.clearSort("CompanyName");
}
In this article