Hi,
I have a grid that's bound to a webservice to provide its data. I have enabled sorting and
this works ok but the expression returned is always <columnname> ASC the icons change correctly on the grid column but it never changes to DESC when you click on the column again? I assume this is because I'm creating the grid dynamically at runtime and also changing the grid structure dynamically as in :
http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html
http://www.telerik.com/help/aspnet-ajax/grdchanginggridstructuredynamically.html
Any ideas?
thanks
Toby
I have a grid that's bound to a webservice to provide its data. I have enabled sorting and
function
onGridCommand(sender, args) {
var
OldSortExpression = SortExpression;
var
sortExpressions = sender.get_masterTableView().get_sortExpressions();
// SortExpression (global) is passed to webservice on rebind of grid.
SortExpression = sortExpressions.toString();
}
this works ok but the expression returned is always <columnname> ASC the icons change correctly on the grid column but it never changes to DESC when you click on the column again? I assume this is because I'm creating the grid dynamically at runtime and also changing the grid structure dynamically as in :
http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html
http://www.telerik.com/help/aspnet-ajax/grdchanginggridstructuredynamically.html
Any ideas?
thanks
Toby