Custom sorting and hiding columns in gridsetting toolbar

We are using Sycfusion pivot grid to render data, here we want id column as internal parameter to sort the column , Example month is the description shown in the grid but we want monthid to be used to change the sort behavior, how can we achieve this. 

Also we do not want monthid to be shown in the pivot grid settings toolbar which is rendered. How can we achieve this. 


3 Replies 1 reply marked as answer

SN Sivamathi Natarajan Syncfusion Team June 30, 2020 03:02 PM UTC

Hi Dileep gagan, 
 
Thanks for contacting Syncfusion support. 
 
We are unable to understand the query. So, could you please provide us more details along with screen-shots/video if possible. 
 
Regards, 
Sivamathi. 



DG Dileep gagan R July 1, 2020 05:44 AM UTC

Hi Shivamani,

You can see attached screenshot for your reference, where Month sort is happening in alphabetical order (April, February, January) but we have MonthId internally which we want the sorting to happen which gives (January, February, April). We are looking is there a possibility to achieve it or any even is exposed on sort change from the grid so we can have custom implementation 

Attachment: sorting_3fa0ec93.zip


SN Sivamathi Natarajan Syncfusion Team July 2, 2020 03:46 PM UTC

Hi Dileep gagan, 
 
We regret you to let you know that, we cannot achieve this requirement – “To sort the fields based on id”. Instead you can use the date grouping feature to sort date format fields. Please check the below documentation and online demo for your reference.  
 
 
 
We hope the above sample meets your requirements. 
 
Regards, 
Sivamathi. 


Marked as answer
Loader.
Up arrow icon