This is a migrated thread and some comments may be shown as answers.

[Solved] Can I change the querystring for grid sorting?

0 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel
Top achievements
Rank 1
Daniel asked on 17 Nov 2010, 08:47 AM
By default, sorting the grid will create the following querystring (with PrefixUrlParameters off):

http://server/entities?orderBy=Name-asc

I'd like to be able to change it to:

http://server/entities?sort=name&direction=asc

In other words, I'd like to be able to do 3 things:

1. Lower case the entire URL ('Name' becomes 'name').
2. Separate the sort column and sort direction into two parameters ('orderBy=Name-asc' becomes 'sort=name&direction=asc').
3. Assuming #2 can't be done, change the orderBy parameter separator character to something besides dash, like a comma ('orderBy=Name-asc' becomes 'orderBy=Name,asc').

Does anyone know if this is possible? I do not need multi-column sorting and I'm trying to fit the grid into a legacy application.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Share this question
or