Preload value don't work

I'm using the DatePicker control on an edit form and I need to preload whit the model value.
Using this way:
@Html.EJS().DatePicker("LastDeparture").Value(Model.LastDepartureDate).Render()
, or this way:
@Html.EJS().DatePickerFor(model => model.LastDepartureDate, new Syncfusion.EJ2.Calendars.DatePicker { Value = Model.LastDepartureDate}).Render()
, I got the same result on UI, a blank editor:
Am I missing something?

1 Reply

PK Prem Kumar Madhan Raj Syncfusion Team July 3, 2018 01:47 PM UTC

Hi Nuno, 

Sorry for the inconvenience. 

The reported issue “DatePicker value becomes null when model value is binded” is already a known issue at our end and also we have fixed this issue with our patch release that has been released today (3rd July 2018). So, please make use of the update scripts (CSS and Source files) to resolve this issue at your end.

If still any persist at your end, then please revert back to us with more information so that we can provide an exact solution for your requirement. 

Regards, 

Prem Kumar M 


Loader.
Up arrow icon