How to select All value in multi select by default

I have an sfmultiselect control in my application.I would like to know how to select all item "by default" without clicking "Select All" checkbox.


1 Reply

BC Berly Christopher Syncfusion Team November 18, 2021 12:34 PM UTC

Hi KINS, 
  
Greetings from Syncfusion support. 
  
We can achieve the requested requirement with help of SelectAllAsync(true) by using component instance as mentioned below code example. 
  
  
public async Task onCreate() 
    { 
        multiObj.SelectAllAsync(true); 
 
    } 
 
  
  
Screenshot: 
  
 
  
Regards, 
Berly B.C 


Loader.
Up arrow icon