sortorder for more than one

Questionssortorder for more than one
toki asked 11 years ago

Hi Abu,

$grid["sortname"] = "date,id";
//You say that there is no problem for two fields ordering as above.

$grid["sortorder"] = "DESC, ASC"; // DESC for date field and DESC for id field

Is it possible that sortorder works as above for more than one field ?

Regards…

4 Answers
Abu Ghufran answered 11 years ago

Well, there is way around for it.

$grid["sortname"] = "date DESC,id";
$grid["sortorder"] = "ASC";

Date will be sorted desc, and ID asc.

toki answered 11 years ago

Hi Abu,

Yes, It is a solution for my question. It works with no problem.

Thanks…

Chao Shun Jenq answered 9 years ago

Hi,Abu,

jqgrid_dist.php version :1.5.2 build 20140824-0705

When I set two fields ordering,
it will be show a error message.

Can you test it and send me a new jqgrid_dist.php

Regards,

Abu Ghufran answered 9 years ago

Fix emailed.

Your Answer

0 + 13 =

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?