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
Well, there is way around for it.
$grid["sortname"] = "date DESC,id";
$grid["sortorder"] = "ASC";
Date will be sorted desc, and ID asc.
Hi Abu,
Yes, It is a solution for my question. It works with no problem.
Thanks…
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,
Your Answer