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

Regarding Kendo auto complete clear not triggering

4 Answers 811 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
software
Top achievements
Rank 1
software asked on 16 Jul 2018, 10:24 AM

Hi , 

if we set value programatically to the autocomplete then clear is not triggering value change first time.

As I got this related link https://github.com/telerik/kendo-angular/issues/1052 , Saying its resolve in Fixed v1.4.0-dev.201712121657

But is there any quick fix / alternative way available to solve this without updating new version...

4 Answers, 1 is accepted

Sort by
0
software
Top achievements
Rank 1
answered on 17 Jul 2018, 01:26 PM

Hi, 
I was trying to solve the issue. But i think its because I am binding value once I got the responce. May be that is the reason it is not coming.

For more Understanding I have created plunker with set timeout.

On click of open dailog , I am calling request and binding the values same way i tried here.

https://plnkr.co/edit/bawpAaMzVjV90ax8rpOR?p=preview

 

 Can You please look in to it , what should i do to trigger valuechange in this scnario

0
Alexander Popov
Telerik team
answered on 18 Jul 2018, 06:21 AM
Hello,

You could try setting the country to null before the timeout. For example: 
public open() {
  this.countryName = null;
  setTimeout(()=> {
    this.countryName = "IND";
  },100);
  this.opened = true;
}


Regards,
Alexander Popov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
software
Top achievements
Rank 1
answered on 09 Aug 2018, 10:42 PM

Hi,

In plunker I have tested it is working. Thanks..
But still I am facing same issue with my local project. But I am not able to produce it plunker. But as per the suggestion if I applied initially null then clear is not working until we manually select complete text clear it and select another filed from dropdown. Once the first selection is done then clear is working. I am trying to create same with plunker but not able to do..

0
Alexander Popov
Telerik team
answered on 13 Aug 2018, 11:13 AM
Hi,

I would recommend upgrading the kendo-angular-dropdowns package. I've tried reproducing the issue in the original bug report and it seems to be working as expected with the latest version. If you believe there is another issue, then I would recommend opening a bug report in our GitHub repository.

Regards,
Alexander Popov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
software
Top achievements
Rank 1
Answers by
software
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or