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

Asp TextBox conflicting with Kendo Window

0 Answers 140 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 26 Sep 2012, 12:54 AM
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:
<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!

No answers yet. Maybe you can help?

Tags
Window
Asked by
Eric
Top achievements
Rank 1
Share this question
or