Hi. I am having a little problem with kendo window, hope you guys can help me out.
I am developing an ASP.NET Web Forms application where i use some kendo controls with asp.net server controls.
In this application I have a page where the user clicks in a button which will open a kendo window. This kendo window has an asp:TextBox (which will turn into a kendo datetimepicker) and a Save button.
The problem is: when this textbox is inside the kendo window, it arrives on server side code without value.
When i comment the kendo window initialization code, everything works out just fine.
Does the kendo window create another form or something?
My codes:
Window and textbox:
Initializing kendo window and kendo datetimepicker
Handling the click event of the button who opens the kendo window:
Best Regards!
I am developing an ASP.NET Web Forms application where i use some kendo controls with asp.net server controls.
In this application I have a page where the user clicks in a button which will open a kendo window. This kendo window has an asp:TextBox (which will turn into a kendo datetimepicker) and a Save button.
The problem is: when this textbox is inside the kendo window, it arrives on server side code without value.
When i comment the kendo window initialization code, everything works out just fine.
Does the kendo window create another form or something?
My codes:
Window and textbox:
<div id="newSessionWindow"><label for="sessionDate">Data da próxima sessão*</label><br /><asp:TextBox runat="server" ID="sessionDate" ClientIDMode="Static"></asp:TextBox> <br /><br /> <asp:LinkButton runat="server" ID="SaveSession" Text="Salvar" CssClass="k-button" /> </div>Initializing kendo window and kendo datetimepicker
// New Session Window $("#newSessionWindow").kendoWindow({ draggable: true, appendTo: "#globalBody", height: "110px", modal: true, resizable: false, title: "Nova sessão", width: "400px" }); $("#sessionDate").kendoDateTimePicker({ format: "dd/MM/yyyy hh:mm tt", start: "month", depth: "month", min: new Date(year, month, day) });Handling the click event of the button who opens the kendo window:
$("#AddSession").click(function (e) { $("#newSessionWindow").show(); var newSession = $("#newSessionWindow").data("kendoWindow"); newSession.center(); newSession.open();});
Best Regards!