[.NET6] C1DateEdit in TimePicker mode: small focus problem

Posted by: wknauf on 17 April 2023, 11:42 am EST

    • Post Options:
    • Link

    Posted 17 April 2023, 11:42 am EST - Updated 17 April 2023, 11:47 am EST

    See attached sample with two C1DateEdit, one in “ShortDate” format, the other in “ShortTime”.

    TimePicker.zip

    In the sample, the initially focused control is a textbox.

    Now click on the “spin up” button of both C1DateEdit.

    The “ShortDate” picker works as expected: the date part is focused and spins:

    But the “ShortTime” picker flickers and does not change at all.

    It works if the picker is focused first.

    Note that we use a custom format “HH:mm” in our pickers, so please don’t fix this issue only for “ShortTime” :wink:

    Best regards

    Wolfgang

  • Posted 18 April 2023, 2:33 am EST

    Hi Wolfgang,

    Thank you for providing the sample project. We could see the behavior you mentioned on our end and it seems like a bug. We have reported the issue to the development team for further investigation and will update you as soon as possible.

    In the meantime, please set the InitialField property of the C1DateEdit to Hour to resolve this issue. We have attached the updated sample project for reference.

    You also don’t have to worry about resolving this issue for your custom format. In the bug report, we also informed the development team of this. :wink:

    Attachment: TimePicker_Updated.zip

    [Internal Tracking ID: C1WIN-29579]

    Thanks, and Kind Regards,

    Kartik

  • Posted 18 April 2023, 5:04 am EST

    Perfect, thanks! This is an easy workaround - I applied it to our code.

    Best regards

    Wolfgang

  • Posted 7 December 2023, 3:30 pm EST

    I can confirm that this was fixed in .631.

    The release notes point to a different JIRA ticket:

    [DateEdit][NET6] No field was not selected if spin button was pressed when using time-only formats. (Jira:C1WIN-30629)

    Best regards

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels