You will need some Javascript to make this happen. A JavaScript action call from a nanoflow might be a good way to execute this. So, on the page you’d have a button that calls a nanoflow, and that nanoflow would call a JavaScript action. Here’s what the JS action would need to do:
The code would need to look like this (note: this code is not fully tested but worked from my browser console):
// input parameter gridClass: a string matching a CSS class applied to the data grid on the page
var dgNode = document.getElementsByClassName(gridClass)[0];
var dg = dijit.registry.byNode(dgNode);
return JSON.stringify(dg._dataSource._sorting);
// outputs a string that looks like this:
// [["ShortDesc","asc"],["Price","asc"]]
(sorry about the formatting above… something is up with the code editor)
Hi Nick,
This is not possible using out of the box functionality. You will have to create custom functionality to achieve this.
Couple of options that I can think of are (not sure if it works but may need some trails)
Hope this helps!