Hi There,
I need to use datapicker control in a tabstrip which is in a grid control. I am trying to bind date value to my datapicker control but it's coming as blank.
Following are different ways i have tried:
1:
tml.Kendo().DatePicker()
.Name("datepicker")
.Value("\\#= storageCharge.storageEndDate #\\")
.HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()
)
And
@(Html.Kendo().DatePicker()
.Name("datepicker")
.Value("#= storageCharge.storageEndDate #")
.HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()
)
Also if i bind the same way to a input control it works:
<input type="text" onchange="javascript:calcStorageFees()" value="#= storageCharge.storageEndDate #" id="strDate" on name="strDate" />
I need to use datapicker control in a tabstrip which is in a grid control. I am trying to bind date value to my datapicker control but it's coming as blank.
Following are different ways i have tried:
1:
tml.Kendo().DatePicker()
.Name("datepicker")
.Value("\\#= storageCharge.storageEndDate #\\")
.HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()
)
And
@(Html.Kendo().DatePicker()
.Name("datepicker")
.Value("#= storageCharge.storageEndDate #")
.HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()
)
Also if i bind the same way to a input control it works:
<input type="text" onchange="javascript:calcStorageFees()" value="#= storageCharge.storageEndDate #" id="strDate" on name="strDate" />