Sorting for user in Grid Field

I want to have user defined sorting for 3 columns in grid field. I want to have it like we get in appian record(an up/down arrow beside column name). How can I achieve it?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Hello Sudiptab,

    Please Take a look at the recipe provided hemn89.

    When quering the information you need to pass the paging info with the sort as you need, even you can sort with multiple fields.

    In the gridfield you need to define on each column( a!gridTextColumn for example) the “field” parameter so each column will sort using that field, just use the field name as is in the CDT.


    When the user clicks the column the paging info of the gridField gets updated using the saveInto of the gridField. So, additionally you can query again in the same saveInto.
    Or the easy way is using the with function (as mentioned above) which works ok if you don’t have a bunch of other fields or grids, because the win will refresh each user interaction.

    I am not able to provide an example but hope this explanation helps you

    Jose