javascript - kendo ui code is Not working fine in java script function why? -


i have make js function call on button click

in there 59 differnt values assign diffenrt html element java script.

now found values assign

but there 2 kendo ui drop down on page, not dropdown cascading frist assign value of 1st dropdown , accoding dropdown 2nd dropdown refereshed , had assign values 2nd drop down don't accept value.

why?

i had put alert in function if put alert it's disply why?

code:--

if (c != null) {       var country = $("#countryforpricing").data("kendodropdownlist");                                 alert(c);                                 country.select(function (dataitem)                                    {                                     return dataitem.value == c;                                 });                                 catalogpricingsetprogramexrate(c);                             } 

execution pointer execute function line line prove alert function , " catalogpricingsetprogramexrate(c) " called dropdown don't value.

if alert removed it's not work , if put alert it's work why? there timing issue?

can 1 guide me..?

regards, vinit

i can't sure amount of code posted, sounds second dropdown still populating button onclick function.

i believe need wait cascade finish before can set it. timeout, think can handle cascade event aswell.

http://docs.telerik.com/kendo-ui/api/web/dropdownlist#events-cascade

<input id="dropdownlist" /> <script> $("#dropdownlist").kendodropdownlist({   cascade: function() {     // handle event   } }); </script> 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -