Submit button not firing

2 posts, 0 answers
  1. Anthony
    Anthony avatar
    126 posts
    Member since:
    Jun 2013

    Posted 24 Jul 2014 Link to this post

      I've been asked this by another developer but have no idea what the answer is

    Here we have a form with a submit button. When the button is a Kendo mobile button the form does not submit, when the kendo javascript is removed it does?
    I assume preventDefault() is getting called somewhere but not sure why?

    We have a workaround, just submit via javascript, but would be interested to know why


    <form action="/EmployeeKiosk/Settings" id="form1" method="post" name="form1">
      <select id="Platform" name="Platform">
        <option selected="selected">Mobile</option>

        <button id="acceptButton" type="submit"></button>

            $( '#Platform' ).kendoDropDownList();

  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 25 Jul 2014 Link to this post

    Hi Anthony,

    The submit is not fired, as it is being prevented by the Kendo UI code. It is done by design, as submit action can break the widget functionality in some scenarios.  As you said you can submit using JavaScript and it will practically do the same.

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top