I am working on w2ui where i got my own custom sort function. The sort function is working find but the arrow is not displaying in the table header.
I have applied my custom sort in lastname and you can see the arrow on clicking the firstname.
How can i display the arrow mark?
Thanks in advance.
onSort : function(event){
if(event.field == "lname"){
event.preventDefault();
records = w2ui.grid.records;
/*My custom logic starts here.(example only) */
if(ascending){
records.sort();
}
else{
records.reverse();
}
ascending = !ascending;
w2ui.grid.reset();
/*My custom logic endshere.(example only) */
}
}