Sort On a template grid

Hi All,          In my proj there is a requirement like if user click the hightolow button all the items in the entity need to sorted in ascending order and show on the page.Im using a template grid. Did any one implement this functionality.   Thanks in advance
1 answers

Hi Sabita,


What you can do is use a microflow as a datasource for your templategrid. Then wrap an object around your template grid that holds an attribute what the sorting should be. When clicking the ‘High to Low’ button you should update the sorting attribute on the context object.


Then, after a button click, refresh your context object, which in turn refreshes template grid. The last things is sort the list in your microflow datasource according to the sorting you keep track of on your context object.


Let me know if this makes sense.