Posted 20 March 2018, 12:17 am EST
Hi Omar,
For this, we need to cancel default sorting and push the sort descriptions for Grouped Column too along with current column.
Please refer to the following code snippet and find the attached sample:
flex.sortingColumn.addHandler(function(s,e){
e.cancel=true;
var _sort= s.columns[e.col].currentSort;
var _cSort;
if(_sort){
_sort =="+" ? _cSort=false : _cSort= true;
}
cvData.sortDescriptions.clear();
var sd= new wijmo.collections.SortDescription(s.columns[e.col].binding, _cSort )
cvData.sortDescriptions.push(new wijmo.collections.SortDescription("country",true));
cvData.sortDescriptions.push(new wijmo.collections.SortDescription("date",true));
cvData.sortDescriptions.push(sd);
})
~Manish
FlexGrid-preventSorting-groups.zip