How to apply sorting for each column avialable in My Requests widget on employee center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2023 09:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 12:07 AM
Please assist me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 03:07 AM
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.
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.
I hope this helps. Mark my answer correct & Like Helpful, if Applicable.
Thanks!
Venkatesh Nekkanti