State Persistence

11 Mar 20161 minute to read

You can sustain the entire widget model of EJWEB 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.

  • HTML
  • <ej:DatePicker ID="datepick" EnablePersistence="true" runat="server"></ej:DatePicker>