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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to clear the selected checkboxes inside the dropdownlist control

Thread ID:

Created:

Updated:

Platform:

Replies:

129481 Mar 21,2017 03:05 PM UTC Mar 22,2017 11:16 AM UTC ASP.NET Core 1
loading
Tags: DropDownList
dsapo
Asked On March 21, 2017 03:05 PM UTC

Hi Support:

We want to have a button that when is clicked will reset the selected checkboxes inside the dropdownlist asp.net core control.

This is the dropdownlist definition:

<ej-drop-down-list id="states" name="states" show-checkbox="true" datasource="@((IEnumerable<State>)ViewData["States"])">
                                    <e-drop-down-list-fields text="Name" value="ID"   />
                                    
                                </ej-drop-down-list>

Thanks in advanced

David

Karthikeyan Viswanathan [Syncfusion]
Replied On March 22, 2017 11:16 AM UTC

Hi David,   
  
Thanks for Contacting Syncfusion support.   
  
You can unselect the selected items by using unCheckAll() public method in Dropdown List. Please refer to the below code snippet:   
<code>   
  
function btnclick(args) {   
            target = $('#skillsets').data("ejDropDownList");   
               target.unCheckAll();   
        }   
  
</code>   


 
 
Refer to the online sample browser sample linkhttp://aspnetcore.syncfusion.com/dropdownlist/checkbox    
  
  
Regards,   
Karthikeyan V.  


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.

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

;