How to apply sorting for each column avialable in My Requests widget on employee center

Sheetal18
Tera Contributor

OOTB the sort is available for only 'Updated By' in My Request widget.I am looking for the sorting possible based on all columns available in My Request widget

Linke user can click Request it will sort by request ,simililarly by other columns

Sheetal18_0-1694190476895.png

 

2 REPLIES 2

Sheetal18
Tera Contributor

Please assist me.

Venkatesh_N
Tera Guru

Hi @Sheetal18 ,
My way of approach would be like, 
Approach -1:
Clone the OOTB widget and in the HTML code, make the labels of Request, state, updated as buttons tag.

Venkatesh33_0-1694426524596.png

Add OnClick function to the respective button tags and add Server code function to sort the list using OrderBy method.

Approach -2 :
Adding an extra sort dropdown with the required column values and OnSelect of that value, modify the server side code to return the sorted list OrderBy selected dropdown value.

Venkatesh33_1-1694426806106.png

I hope this helps. Mark my answer correct & Like Helpful, if Applicable.

Thanks!
Venkatesh Nekkanti