Kendo UI Complete ASP.NET Verison :2013.3.1316
download the code library from peter post
add the datetime field in the model
-----------------DateTime Filed PostBack value stays 01/01/0001 Issue-------------------
This approach does not work any more with
new kendo contorls library i do'nt know if its works for the previous verions.
if you have datetime filed in your model
Product
{
public string Name { get; set; }
public int ProductID { get; set; }
public datetime workDate { get; set; } <--
this will be 01/01/0001 on postback
}
when you do this your
view
columns.Bound(item => item.workDate ).Title("Wok Date").Encoded(true).ClientTemplate("#= WorkDate #" +
"<input type='hidden' name='gridItems[#= index(data) #].WorkDate' value='#= WorkDate #' />");
<input type="submit" value="Save" id="save"/>
Fails on Postback
ActionResult Save(Category category)
{
cartegory.prodcut[0].mydate =model.workDate; <---
- your mydate will be 01/01/0001
cartegory.prodcut[1].mydate =model.workDate; <---- your mydate will be 01/01/0001
}
please help any one.....
regards
Shahzad ilyas