Column sort question (first click)

QuestionsColumn sort question (first click)
Anonymous asked 6 years ago

First of all, I want to thank you for one of the best tools available for displaying data. I have a license for the developer version and I have been using it for several years. A question…..

I have a column of text. Standard behavior is when I click on the column name, the grid is sorted by that column in ASC sequence. If I click the column name again, the grid of sorted by that column in DESC sequence. Is there a way to make the initial click on the column title DESC instead of ASC? My users want to do 1 “click” to get the column in DESC sequence. The DESC sequence is used 90% of the time when sorting on that particular column. So the first click would sort in DESC sequence, and then the standard alternating between ASC and DESC sequence would be executed.

Thanks

1 Answers
Abu Ghufran Staff answered 6 years ago

You can specify with column settings:

$col[“firstsortorder”] = “desc”;

This will sort descending when you click first.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

15 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?