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

Autocomplete set value not working

3 Answers 419 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Purush
Top achievements
Rank 1
Purush asked on 06 Jul 2012, 03:14 PM
I have Autocomplete box with watermark text . I'm clearing the Autocomplete using value method and excepting Watermark to reappear after clear. None of these are working... i'm missing something ?

$('#city').data('kendoAutoComplete').value(null); or $('#city').data('kendoAutoComplete').value(undefined); or  $('#city').data('kendoAutoComplete').value('');

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 09 Jul 2012, 09:17 AM
Hi Purush,

I am not sure what do you mean by "watermark text", but I assume that you refer to the placeholder text. If that is the case, your expectation is correct - the placeholder should reappear after widget's value is cleared. I tested the scenario in this fiddle and got everything to work as expected on my end. Could you please check the example and let me know if that approach works for you? In case the problem still persists I would ask you to provide code snippets that demonstrate your current implementation or if possible a fiddle where I can observe the issue.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Purush
Top achievements
Rank 1
answered on 24 Sep 2012, 01:57 PM
Hi,

I was firing blur event to bring back place holder text after clear. But the new version don't bring back place holder text back even after firing blur event from code. Attached is the screen shot of jsfiddler in IE 9 browser example in jsfiddle also does the same.

Any help is appreciated.

Regards
Purush
0
Daniel
Telerik team
answered on 27 Sep 2012, 03:47 PM
Hello Purush,

Thank you for clarifying. It seems that there was problem with this functionality in the older version. Using the latest release and empty string instead as parameter for the method should resolve the problem. I updated the jsFiddle sample. Please check it an let me know if it works on your side.

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