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. Image for the cookie policy date
close icon

Grid MultiColumn Sort on Mac

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?

1 Reply

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon