Hi,
I'm using nested grid. In child grid i'm using datepicker. followed as per the below reference link.
http://www.telerik.com/forums/nested-clienttemplate-not-working#OXkDhzlO9UCTmHNzIuvH2A
after that i'm having below issues:-
Values are not binding in the datepicker
script text is printing in grid datepicker cells
when i try to select the date then date selecting icon missing.
Please refer the attachment for the screenshot.
here is my code.
columns.Bound(a => a.EffStartDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerSD_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffStartDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
).Format("{0:dd/MM/yyyy}");
*************************************************************************************************************************************
columns.Bound(a => a.EffEndDate columns.Bound(a => a.EffStartDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerSD_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffStartDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
).Format("{0:dd/MM/yyyy}");
columns.Bound(a => a.EffEndDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerED_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffEndDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
);).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerED_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffEndDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
);
I'm using nested grid. In child grid i'm using datepicker. followed as per the below reference link.
http://www.telerik.com/forums/nested-clienttemplate-not-working#OXkDhzlO9UCTmHNzIuvH2A
after that i'm having below issues:-
Values are not binding in the datepicker
script text is printing in grid datepicker cells
when i try to select the date then date selecting icon missing.
Please refer the attachment for the screenshot.
here is my code.
columns.Bound(a => a.EffStartDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerSD_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffStartDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
).Format("{0:dd/MM/yyyy}");
*************************************************************************************************************************************
columns.Bound(a => a.EffEndDate columns.Bound(a => a.EffStartDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerSD_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffStartDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
).Format("{0:dd/MM/yyyy}");
columns.Bound(a => a.EffEndDate).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerED_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffEndDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
);).Width(130).HtmlAttributes(new
{
@class = "templateCell"
}).ClientTemplate(
Html.Kendo().DatePicker()
.Name("FDPickerED_\\#=AllocationID\\#")
.Format("{0:dd/MM/yyyy}")
.HtmlAttributes(new { data_bind = "value:EffEndDate" })
.Deferred()
.ToClientTemplate().ToHtmlString() +
"<div class=\"scripts\">" +
Html.Kendo().DeferredScripts(false).ToString().Replace("jQuery(\"\\#", "jQuery(\"\\\\\\#") +
"</div>"
);