Miscellaneous

11 Mar 20161 minute to read

Start Day

By default EJWEB DatePicker calendar starts with “Sunday” and ends with “Monday”. You can redefine this start day by using StartDay property.

Refer below code to start Wednesday as start day.

  • HTML
  • <ej:DatePicker ID="datepick" StartDay="2" runat="server"></ej:DatePicker>

    Step Months

    EJWEB DatePicker calendar allows you to quick navigate back and forth from one month to previous or next month by clicking the arrow button. By default its navigate one by one month. You can also navigate by skipping months in odd or even or any count by using StepMonths property.

  • HTML
  • <ej:DatePicker ID="datepick" StepMonths="2" runat="server"></ej:DatePicker>

    Read Only

    You can make EJWEB DatePicker as read only by setting ReadOnly property as true. It allows only to read the value and it can’t be changed by interaction.

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

    Enable or Disable

    You can enable or disable the EJWEB DatePicker textbox by using Enabled property. In inline mode EJWEB DatePicker calendar also gets enabled or disabled.

  • HTML
  • <ej:DatePicker ID="datepick" Enabled="false" runat="server"></ej:DatePicker>