C1inputpanel inputdatepicker

Posted by: comercial on 7 January 2024, 8:30 am EST

    • Post Options:
    • Link

    Posted 7 January 2024, 8:30 am EST

    Can I access inputdatepicker calendar properties?

    I needed to change the width of the dropdown calendar

    Thanks

    JP

  • Posted 8 January 2024, 6:50 am EST

    Hello,

    There is no direct way to change the width of the drop-down calendar, but you can access it in the DropDown event of InputDatePicker as follows:

    private async void InputDatePicker1_DropDown(object sender, EventArgs e)
    {
        await Task.Delay(5);
        var calendar = Application.OpenForms[1].Controls[0];
        calendar.Width += 100;
    }


    Please refer to the attached sample. (see InputPanel48_DateTimePicker_Cal.zip)

    We understand your concern that you want to find a workaround for the “Calendar header not displayed properly in ‘PT-pt’ locale” issue you have reported before. Apologies for the inconvenience, but we have gone through all of the possible ways to find a workaround but could not find one. Increasing the width of the calendar does not change the size of the internal elements of the calendar, as they are static.

    We have already escalated your concern to the developers and have asked them for a viable workaround. We’ll let you know once we get updates from the developers.

    Thank you for your understanding and cooperation.

    Regards,

    Uttkarsh.

  • Posted 8 January 2024, 11:49 am EST

    Uttkarsh, a workaround would save me a lot of problems.

    We have to launch a new version of our software and its stuck because of this problem.

    Regards

    JB

  • Posted 9 January 2024, 4:27 am EST

    Hello,

    The only workaround we could think of is to set StandardFormat to LongDate, but the Today date text at the bottom overflows while displaying LongDate in the “PT-pt” locale.

    inputDatePicker1.StandardFormat = C1.Win.C1InputPanel.InputDateFormat.LongDate;
    
    Refer to the attached sample. (see InputPanel48_DateTimePicker_Mod.zip)

    Please see if this helps until we get updates from the developers.

    Thank you for your understanding and cooperation in this matter.

    Regards,

    Uttkarsh.

  • Posted 9 January 2024, 5:41 am EST

    But then the users would see the date value in the field as a long date right?

    That cant be, because they have to change it often, even manually. And there´s a lot of date fields in our application.

    I will be waiting for some updates from the developers. We really need this.

    Thanks

    JB

  • Posted 12 January 2024, 6:56 am EST

    Hello,

    We have addressed your case in the previous ticket.

    Kindly carry on the discussion related to this use case in that same thread to prevent any confusion.

    Regards,

    Uttkarsh

  • Posted 18 June 2024, 8:04 am EST

    Are these problems already fixed in the new version?

    Another problem is the “Show Today” property not working

  • Posted 19 June 2024, 2:05 am EST

    Hello,

    We apologise for the inconvenience. As per the developers, the ETA for the fix is 2024 v1 hotfix 2. Rest assured, we’ll update you once the issue is fixed.

    As for your other query, we are sorry but we could not replicate the behavior on our end. The “ShowToday” property is used to set whether the today date is displayed at the bottom of the calendar or not. We tested this property on our end and it is working as expected. Please refer to the attached sample and let us know if we are missing on something. (see InputPanel48_DateTime_TestShowToday.zip)

    Could you please update the attached sample or attach a stripped-down version of your project so that we can observe and investigate the behavior on our end?

    Regards,

    Uttkarsh.

  • Posted 2 January 2025, 3:15 am EST

    Hello,

    We’re glad to let you know that the issue has been fixed in the latest release of the control. Please upgrade your controls to the latest stable build (2024v2 688) or the Hotfix build (2024v2 Hotfix 1 693 — currently available on NuGet only)

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels