This is a migrated thread and some comments may be shown as answers.

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

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Krunal
Top achievements
Rank 1
Krunal asked on 26 Jun 2014, 09:24 AM
Hi



I have make a js function which is call on button click

in which there is 59 differnt values are assign to diffenrt Html element by java script.

Now i found all Values are assign properly

but there are 2 kendo ui drop down also on page, not dropdown is
cascading so frist i assign value of 1st dropdown and accoding that
dropdown 2nd dropdown refereshed and then i had to assign values but
that 2nd drop down don't accept value.

why?

i had to put a alert in that function if i put alert then 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 is execute this function line by line this is prove
by this alert function and " CatalogPricingSetProgramExRate(c) " is
also called but dropdown don't get value.

if alert is removed then it's not work and if i put alert then it's work why?
is there any timing issue?

can any one guide me..?

Regards,
vinit

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 30 Jun 2014, 07:38 AM
Hello Vinit,

Indeed, this could be a timing-related issue, however the attached code does not reveal what exactly is causing it. Sharing the related code, live link, or ideally - a runnable sample project where the issue is reproduced would help us pinpoint the exact reason for this behavior and advise you further. 

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Krunal
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or