Checkboxes

Is there a way to uncheck all items in the dropdown by default when it opens.

See below, when the user clicks the control and all the items display, how can we make sure that they are all unticked by default.

Hope you understand my question. Thanks in advance.



1 Reply

PM Ponmani Murugaiyan Syncfusion Team March 1, 2022 06:03 AM UTC

Hi GEORGE, 

We have prepared sample as per your requirement using the selectAll method. Based on the state parameter, entire list item will be selected/deselected,  
parameter true - Selects entire list items 
parameter false - Un Selects entire list items. 


We have achieved using the open event of the Multiselect component. You can achieve either using created event as per your requirmenet. 

onOpen() { 
  this.mulObj.selectAll(false); 
} 


Regards, 
Ponmani M 


Loader.
Up arrow icon