New to Telerik UI for ASP.NET AJAXStart a 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)
fieldNameStringThe DataField of the column whose sort expression should be cleared.

Example:

JavaScript
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");
}
Not finding the help you need?
Contact Support