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

Fields in Window not Posting on Form Submit

1 Answer 194 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 2
Iron
Brian asked on 13 Sep 2018, 05:49 PM

Hi,

I have a form containing a kendo-window with a select inside the window that isn't posting.  When I place the select outside the kendo-window, it posts correctly.

Is there something I need to be doing to get a field inside a kendo-window to post?

Note: all other fields including the window are in the form #changeForm.

 

Markup:

<kendo-window name="confirm" modal="true" title="Send" draggable="false" resizable="false" width="600" visible="false">
    <content>
        <p>Who would you like to send the email to?</p>
        <div id="dialog-content">
            <select asp-for="Names" multiple="multiple" class="form-control" asp-items="@(new SelectList(ViewBag.Users))">
                <option value="" selected></option>
            </select>
        </div>
        <hr />
        <button class="btn btn-success" type="button" id="confirmSend">Send</button>
    </content>
</kendo-window>

 

Script:

$("#confirmSend").click(function() {
    $("#changeForm").submit();
});

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 2
Iron
answered on 13 Sep 2018, 06:00 PM

I ended up solving the issue by using:

append-to="#changeForm"

on the Kendo window.

Thanks!

Tags
Window
Asked by
Brian
Top achievements
Rank 2
Iron
Answers by
Brian
Top achievements
Rank 2
Iron
Share this question
or