Is it possible to perform secondary sorting on a grid?

Document ID : KB000028319
Last Modified Date : 14/02/2018
Show Technical Document Details


Is it possible to perform secondary sorting on a grid where the user can click on a column to sort the grid by that column, and then click on another column to perform a secondary sort within the first column that was selected? 


The built-in grid control within CA Plex only supports one level of sorting. However, you can achieve multiple levels of sorting by creating views with multiple key fields. Each view would need to have a BlockFetch function scoped to it, and then you will need a driver function that determines which BlockFetch function to call depending on what the user wants to sort by. On the panel of the UI function, you will need a radio button (or some other control) for the end user to select the sort order to display. You will also need to replace the call to the original BlockFetch function with the driver function passing in a parameter of the sort option the user selected so that the driver function can determine which BlockFetch function to call.