Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  32] [ 5]  / answers: 1 / hits: 48883  / 12 Years ago, sun, august 26, 2012, 12:00:00

Im trying to refresh the Drop Down List after another DropDownList is Change But the Refresh() method is Undefined Error Is Promoting.There For I Tried the Read the DataSource again and it shows it loading but the data is still the same.Help to Solve this Issue please.



Code:



$(#DropDownList1).change(function () {
custCode = $(#DropDownList1).val();

$(#titles).data(kendoDropDownList).dataSource.read(); //shows list Loading But Same Data Is present .
$(#titles).data(kendoDropDownList).refresh(); //NOT Working

});

More From » jquery

 Answers
5

1- Try adding cache: false to disable the cache in Kendo DropDownList's datasource read property:



read: {
url: <<url>>,
cache: false
}


2- Then call read(),



$(#ddl).data(kendoDropDownList).dataSource.read();


It worked for me :)


[#83420] Friday, August 24, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jackeline

Total Points: 245
Total Questions: 92
Total Answers: 100

Location: Ukraine
Member since Sun, Dec 13, 2020
4 Years ago
;