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
125
UltraTimeSpanEditor Format of Hours still assumes days
posted

I'm using version 17.1.20171.2043

If I add an UltraTimeSpanEditor to a form and set it's Format to Hours I would expect to be able to type "1" and tab out of the editor and have it result in "1 hr".

Instead it defaults to "1 day".

I have been unable to find any override or cancel event handler that I can tap into to change this decision making.

Is there any way to have the control honor the Format property for the default unit?

Parents
No Data
Reply
  • 1135
    Verified Answer
    Offline posted

    Hello Gary,

    Thank you for posting in our forum.

    I suggest you handle BeforeExitEditMode event and convert the day value to the hour value if the current editor text only holds numbers.
    Please take a look at the attached sample and let me know if this works for you.

    5707.WindowsFormsApplication1.zip

    Thank you,
    Mihoko Kamiishi

Children