Leave window element inside of form element

3 posts, 0 answers
  1. Jesse
    Jesse avatar
    54 posts
    Member since:
    Aug 2013

    Posted 24 Apr 2018 Link to this post

    I'm finding that when I call .kendoWindow on $("#window"), the #window div is moved to the end of the body

    <form>
        <div id="window">
            <input type="text" name="partOfMyForm" />
        </div>
    </form>

     

    But what if the contents of the window are inputs that belong to the form and need to be submitted with it? Is there a way to leave the window element inside the form element?

  2. Jesse
    Jesse avatar
    54 posts
    Member since:
    Aug 2013

    Posted 24 Apr 2018 Link to this post

    P.S. I'm trying to avoid what might be a workaround of copying all of the window input values to hidden fields in the form when the window closes.
  3. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2062 posts

    Posted 26 Apr 2018 Link to this post

    Hello Jesse,

    The Window has a configuration option that allows the widget to be appended to an element, for instance to the form: appendTo. See the following dojo for an exemplary use of the appendTo option.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top