Autocomplete set value not working

4 posts, 0 answers
  1. Purush
    Purush avatar
    5 posts
    Member since:
    Sep 2012

    Posted 06 Jul 2012 Link to this post

    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('');
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 09 Jul 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Purush
    Purush avatar
    5 posts
    Member since:
    Sep 2012

    Posted 24 Sep 2012 Link to this post

    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
  5. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 27 Sep 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready