Hello,
I am new to Kendo UI and I am having some trouble trying to create a window dialog with datepickers in it.
The first time I load it, it looks great.
Then I close it, open it again and the datepickers don't seem to load properly.
Can you help me or point me in the right direction?
Here's my code:
$(
"#button"
).click(
function
(e)
{
e.preventDefault();
var
kendoWindow = $(
"<div />"
).kendoWindow(
{
open:
function
()
{
var
picker = $(
"#project_end_datepicker"
).data(
"kendoDatePicker"
);
if
(picker ==
null
)
{
$(
"#project_end_datepicker"
).kendoDatePicker(
{
animation:
false
});
$(
"#project_start_datepicker"
).kendoDatePicker(
{
animation:
false
});
}
},
title:
"Nieuw project"
,
resizable:
false
,
iframe:
true
,
modal:
true
});
kendoWindow.data(
"kendoWindow"
)
.content($(
"#new-project-dialog"
).html())
.center().open();
});