Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
810
Calendar dropdown
posted

 

 

 

 

 

Hi ,

I have a webdatepicker control where i just need the up and down arrow buttons and i dont

need the calendar dropdown to be clicked.I use the following parameters but still the calendar dropdown is seen.

How do i disable the calendar dropdown for time control?

<

 

ig:WebDatePicker ID="FromTime" EditMode="KeyboardAndCalendar" EnableYearDropDown="False"EnableMonthDropDown="false" runat="server" TabIndex="55" DisplayModeFormat="t"EditModeFormat="t">

 

 

<Buttons SpinButtonsDisplay="OnRight">

 

 

</Buttons>

 

 

</ig:WebDatePicker>

Parents
No Data
Reply
  • 24497
    posted

    Hi ssvan,

    If I undestood you correctly you want to disable drop-down calendar. If that is correct, then I suggest you to use WebDateTimeEditor which is exactly same control but without drop-down calendar. If you prefer to use WebDatePicker, then you may hide button, though calendar may appear on triggers like Ctrl+DownArrow. You also may disable all triggers as well. Below are examples for both WebDatePicker and WebDateTimeEditor:

    <ig:WebDatePicker ID="WebDatePicker1" runat="server">
      <buttons custombuttondisplay="None" custombuttonhotkeys="" spinbuttonsdisplay="OnRight">
      </buttons>
    </ig:WebDatePicker>
    <ig:WebDateTimeEditor ID="WebDateTimeEditor1" runat="server">
      <buttons spinbuttonsdisplay="OnRight"></buttons>
    </ig:WebDateTimeEditor>

Children
No Data