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

Reset cascading DropDownLists

Thread ID:





132267 Aug 23,2017 02:54 PM UTC Aug 24,2017 06:37 AM UTC JavaScript 1
Tags: ejDropDownList
Carsten Buchmann
Asked On August 23, 2017 02:54 PM UTC


I got three DropdownLists and the first cascade to the second and this one to the third. Now I want add a button which clear all dropdownlists and they will show up all items again.

I tried with:


But with no success.

Do you got any ideas?

Kind regards,

Prince Oliver [Syncfusion]
Replied On August 24, 2017 06:37 AM UTC

Hello Carsten, 

Thank you for contacting Syncfusion forums. 

To clear a selected value in the DropDownList, you can set selectedIndex property to -1 by accessing the control’s instance. Kindly refer to the following code snippet.   

$("#btn").on("click", function(){ 
    ddl1.setModel({selectedIndex: -1}); 
    ddl2.setModel({selectedIndex: -1, enabled: false}); 
    ddl3.setModel({selectedIndex: -1, enabled: false}); 

Kindly refer to the following playground sample: http://jsplayground.syncfusion.com/jqizikit 



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