Templates are not for forms, correct?

4 posts, 0 answers
  1. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 06 Mar 2012 Link to this post

    I've done some preliminary tests and it seems that Kendo templates shouldn't be used for form elements.  While the templates create the forms fine, it's not possible to reference input elements from jQuery, since it's just created in memory.

    In other words, click events from buttons don't work.

    I just want some confirmation about this.  If I'm wrong, please clarify.

    Thanks,

    King Wilder
  2. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 06 Mar 2012 Link to this post

    Nevermind.  I figured it out.

    I just changed my jQuery click handler from this:

    $(":button").click(function () {
       // some code
    });

    ... to this...

    $(":button").live("click", function () {
       // some code
    });

    The "live" event handler did the trick.
  3. Kendo UI is VS 2017 Ready
  4. Mangesh
    Mangesh avatar
    16 posts
    Member since:
    Sep 2011

    Posted 31 Mar 2012 Link to this post

    Hi,

    Even I'm facing the same problem. I'm able to display form correctly, but not able to access the form i.e. I have added input type text by using kendo template but when I run the app, I'm not able to write anything on input box. ? Is this the limitation of using Kendo Template ?

    Thanks,
    Mangesh
  5. Bruce
    Bruce avatar
    1 posts
    Member since:
    Apr 2012

    Posted 03 Apr 2012 Link to this post

    Surprised that no one has helped on this. Would like to see a solution.
Back to Top
Kendo UI is VS 2017 Ready