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
275
Is it possible to build a TimePicker using XamDateTimeInput
posted

I'm thinking of building a TimePicker with below format

[ 4:21 PM <Spin Button>] 

Before investing time to investigate this possibility.Wanted to know from the Team ,Is it approach good.

If you aware of any other Infragistics control which provides this functionality .

Please help.

Parents
  • 12875
    posted

    Hi Raj, 

    Yes you can create a time picker with just the hours, minutes and AM/PM showing by using the XamDateTimeInput control. 

    Set the SpinButtonDisplayMode to Always and SpinIncrement to “1m”.  Then set the Mask to “hh:mm tt” 

    The calendar will not expand because of your mask.  If you wanted to include months, days or years in your mask then you would need to set the DropDownButtonDisplayMode to Never, if you didn’t want to see the calendar. 

    <ig:XamDateTimeInput Width="200"  Height="20"

                         Mask="hh:mm tt" 

                         SpinButtonDisplayMode="Always"

                         SpinIncrement="1m"   /> 

    Let me know if you have any questions.

     

Reply Children