Multiselect does not reset on form.reset()

5 posts, 1 answers
  1. ICT
    ICT avatar
    17 posts
    Member since:
    May 2013

    Posted 23 May 2013 Link to this post

    I've got html form and Kendo UI Multiselect in it. In js function i will reset form by usin form.reset(). How do i clear user made selections of it? It seems that selected values are still visible but my Kendo UI validator gives me required error.
  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 27 May 2013 Link to this post

    Hello,

    The value should automatically be cleared by the multiselect widget when the form is being reset. Could you check this jsBin example and this screen cast and let me know if I am missing something?

    Regards,
    Daniel
    Telerik
    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. ICT
    ICT avatar
    17 posts
    Member since:
    May 2013

    Posted 29 May 2013 Link to this post

    This Multiselect is outside of form in DOM but it's using new html5 form attribute and its included to my form like that. It'seems that reset does not work in this case.
  5. Answer
    Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 31 May 2013 Link to this post

    Hello Janne,

    Currently the form attribute is not supported by the input widgets. I have logged this in our system and we will add support for future versions. For now I can suggest either to use the MultiSelect within the form or use the value method to clear the value.

    Regards,
    Daniel
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. ICT
    ICT avatar
    17 posts
    Member since:
    May 2013

    Posted 07 Jun 2013 Link to this post

    Thank you for your answers. Using value method works for this.
Back to Top
Kendo UI is VS 2017 Ready