Hello,
Is there a way to sort Grouped Columns by the number of rows occurences :
Rather than the Column value.
Thanks in advance.
Jean-Luc
4 Answers
Hello,
Thanks for your input.
This is working fine as long as no line (order_id in your case) is filtered.
How to get the same result when some records are ‘dynamically’ filtered ?
Thanks in advance for your additional input.
Jean-Luc
Hello again,
I managed to generate dynamically the SQL statement to be used in grid ‘sortname’.
What is the syntax in JS to set grid sortname before refreshing it ?
Best Regards,
Jean-Luc
Hi,
You can try following, this will sort list1 grid with country column descending after reload.
var grid = jQuery('#list1'); grid.jqGrid('setGridParam',{sortname: 'country', sortorder: 'desc'}); grid.trigger('reloadGrid',[{current:true}]);
Your Answer