This is a migrated thread and some comments may be shown as answers.

Leave window element inside of form element

2 Answers 116 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Veteran
Jesse asked on 24 Apr 2018, 10:48 PM

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 Answers, 1 is accepted

Sort by
0
Jesse
Top achievements
Rank 1
Veteran
answered on 24 Apr 2018, 10:50 PM
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.
0
Ivan Danchev
Telerik team
answered on 26 Apr 2018, 02:08 PM
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.
Tags
Window
Asked by
Jesse
Top achievements
Rank 1
Veteran
Answers by
Jesse
Top achievements
Rank 1
Veteran
Ivan Danchev
Telerik team
Share this question
or