Saturday, 28 September 2013

Clear sorting using javascript for client-side databound RadGrid

Clear sorting using javascript for client-side databound RadGrid

I am using Telerik's controls for ASP.Net AJAX version Q2 , 2011.
I have a RadGrid that is being databound on client side to a web service.
Everything is working fine, except that when I try to clear sorting using
following javascript, the sorting clears up but the asc/desc image still
shows up next to the column header.
Is there a way to also not show the asc/desc image when sorting gets
cleared by calling the function below?
function RemoveSorting() {
tableView.get_sortExpressions().clear();
tableView.rebind();
}

No comments:

Post a Comment