Hello. It’s me again)
Is there a way to change default sort direction in grid? I mean the direction in which column are being sorted when user click on its header for first time. At present, when we click on column header for first time, it’s sorted in ascendant direction. Need descendant
It can be done only with code modification.
thought out following freeky workaround:
mygrid.attachEvent("onBeforeSorting",function(ind,type,dir){
if (current_sort_field != ind)
current_sort_order = 'des';
else
current_sort_order = (current_sort_order=='asc')?'des':'asc';
current_sort_field = ind;
reload_main_grid();
this.setSortImgState(true,ind,current_sort_order);
return false;
});