Not sure but the following is not controlling the order of my table displayed in the grid.
$grid["sortname"] = 'SPSPACE_ADDRESSSORT';
$grid["sortorder"] = "desc";
Thanks
5 Answers
I rechecked it and it works as expected. Please make sure you pass the $grid array to set_options() function, before calling ->render() function.
Hi Abu,
I did confirm that I called the set_options() before the render(). Any other thoughts?
Thanks
Went into the JQGrid_dist.php and found the SQL being executed. I am using DB2 and the order by clause was on an internal sub query and moved it to the outside query and fixed the issue. Also fixed a column sort issue I was having.
Thanks
Your Answer