I have a dropdownlist with a datasource. I need to clear the items in the list to sort of initialize it after someone makes an selection and some other things happen..
How can i clear the items in the list? Clear them from the datasource? thanks.
1 Answer, 1 is accepted
0
Dimo
Telerik team
answered on 31 Oct 2012, 04:01 PM
Hello Rich,
You can use:
var ddl = $("#clientid").data("kendoDropDownList");
ddl.dataSource.data([]); // clears dataSource
ddl.text(""); // clears visible text
ddl.value(""); // clears invisible value
Regards, Dimo the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!