We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid MultiColumn Sort on Mac

Thread ID:

Created:

Updated:

Platform:

Replies:

149196 Nov 18,2019 12:54 PM UTC Nov 19,2019 01:35 PM UTC Angular - EJ 2 1
loading
Tags: Grid
Martin
Asked On November 18, 2019 12:54 PM UTC

the demos show you can use the control key to do multicolumn sorting. This does not work on my Mac. Are there different key combinations for Mac?

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 19, 2019 01:35 PM UTC

Hi Martin, 

Thanks for your patience, 

We have checked the reported issue and considered “MultiSorting is not working in EJ2 Grid using MAC operating System” as bug and logged a defect report for the same. Thank you for taking  time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming December 4, 2019 Patch Release. 

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.  


Until then we have provided a workaround sample with your requirement. We have achieved the multiSorting operation based on Command Key+Click action using load, dataBound and actionComplete events of EJ2 Grid. 
[app.component.html] 
 <ejs-grid class="sortingenabled" #grid [dataSource]='data' allowPaging='true' allowSorting='true' [sortSettings]='initialSort' (load)="onload($event)" (dataBound)="dataBound($event)" (actionComplete)='actionComplete($event)'>  
        <e-columns> 
            .    .      .     . 
        </e-columns> 
    </ejs-grid> 
[app.component.ts] 
export class AppComponent { 
    public data: Object[]; 
    public initialSort: Object; 
    public pageSettings: Object; 
    public isInitialRender:boolean=false; 
    @ViewChild("grid") 
    public grid:GridComponent; 
    onload(){ 
      this.isInitialRender=true; 
    } 
    dataBound(){ 
      if(this.isInitialRender){ 
        this.isInitialRender=false; 
        this.grid.getHeaderContent().addEventListener("mousedown",function(e){ 
          var grid = (document.getElementsByClassName("e-grid")[0]as any).ej2_instances[0]; 
          debugger; 
          if((as any).metaKey){ 
             grid.sortModule.enableSortMultiTouch=(e as any).metaKey; 
          } 
        }) 
      } 
    } 
    actionComplete(args){ 
      if(args.requestType == "sorting"){ 
        var grid = (document.getElementsByClassName("e-grid")[0]as any).ej2_instances[0]; 
        grid.sortModule.enableSortMultiTouch=false; 
      } 
    } 



Regards, 
Seeni Sakthi Kumar S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon