Hi,
Am using Javascript for rendering a Kendo Grid. In Grid Edit pop up i have a script Template which is an MVC Kendo Template below,
<script id="popup-editor" type="text/x-kendo-template">
<div>
@(Html.Kendo().DatePickerFor(m => m.USReleaseDate).HtmlAttributes(new { @class = "form-control", placeholder = "US Release Date" }).Deferred()) </div>
</script>
Following is my Kendo Editor pop up template code in javascript
template: kendo.template($("#popup-editor").html())
which is perfectly rendering values as expected.
However the problem is, the controls inside the pop up is a plain Html control (<input>) instead of kendo date picker. As i read in the forum, i tried to initialize it below the template like this
<script>
$(function () {
var usReleaseDate = $("#USReleaseDate");
if (usReleaseDate) {
$("#USReleaseDate").kendoDatePicker( {
"format": "MM/dd/yyyy",
"min": new Date(1900, 0, 1, 0, 0, 0, 0),
"max": new Date(2099, 11, 31, 0, 0, 0, 0) });
}
});
but of no use. How can i render kendo controls within a popup editor?