Jun 29, 2011 at 3:55 AM
Edited Jun 29, 2011 at 4:04 AM
I have a DateTime? field which I want a DateTimeFor to use. I have the latest version of the toolkit and when I try this:
@Html.DateTimeFor(model => model.DateFrom, dateInCalendar:true).DateCalendar(inLine: false, calendarOptions: co)
I keep getting a JS error in the MVCControlToolkit.Controls-1.1.5.min.js file. It is complaining in the DateInputChanged method saying that CurrDate is NULL (which it will be in my case).
I read in another post about the workaround for this but also that you have included it in this toolkit version. Am I doing somethign wrong with it?
Looking at the code the
returns null since there is no Date value but straight afterwards the CurrDate is used to lookup day etc.