State Persistence

The value of DateRangePicker can be sustained even after form post back and page refreshing by enabling the EnablePersistence API like below code example.

  • HTML
  • <ej:DateRangePicker ID="dateRange" runat="server" EnablePersistence="true"></ej:DateRangePicker>

    The DateRangePicker Model value will be stored in local storage / cookies of browser before page refreshes and reinitialized with the restored model after refresh.