State Persistence in EJ 1 ASP.NET MVC DatePicker
8 Aug 2017 / 1 minute to read
You can sustain the entire widget model of EJMVC DatePicker even after form post or browser refresh by using EnablePersistence property. So the entire model values such as
- Selected date
- Highlighted date
- Start and depth level
are stored in local storage / cookies of browser before page refreshes and reinitialized with the restored model after refresh.
@*persists the DatePicker model*@
@Html.EJ().DatePicker("datePicker").EnablePersistence(true)
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page