Default ordering column at the end

QuestionsDefault ordering column at the end
Jiri Skrivanek asked 7 months ago

I use ordering by multiple columns:

$opt[“multiSort”] = true;

I would like to add one specific colmun to the end of the column list selected by user. For instance if the user clicks Title and then Department, I want the final order by clause to be:

order by title, department, id

I tried to set:

$grid[“sortname”] = ‘id’;

But it seems to end up as:

order by id, title, department

Is there some way to do it other way round?

1 Answers
Abu Ghufran Staff answered 7 months ago


I tried by intercepting jqgrid beforeRequest event but it’s causing further issues.

It’s not currently supported now.

Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

15 + 3 =

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?