Can not create InputDatePicker

Posted by: moridi on 14 June 2019, 6:17 am EST

  • Posted 14 June 2019, 6:17 am EST

    Hi,
    My windows calendar is Persian calendar and if i want to add InputDatePicker in InputPlanel show me the error and if i want ti add via code show this error

    System.ArgumentOutOfRangeException: 'Specified time is not supported in this calendar. It should be between 03/22/0622 00:00:00 (Gregorian date) and 12/31/9999 23:59:59 (Gregorian date), inclusive.
    Parameter name: time'

    how can i solved this problem?


    var c = new InputDatePicker
    {
    Name = "InputDate1"
    };
  • Replied 14 June 2019, 6:22 am EST

    " at System.Globalization.PersianCalendar.CheckTicksRange(Int64 ticks)
    at System.Globalization.PersianCalendar.GetDatePart(Int64 ticks, Int32 part)
    at System.Globalization.PersianCalendar.GetYear(DateTime time)
    at C1.Win.C1InputPanel.XInputDatePicker.DateInfo.SetDate(DateTime date)
    at C1.Win.C1InputPanel.XInputDatePicker.DateInfo..ctor()
    at C1.Win.C1InputPanel.XInputDatePicker..ctor(InputDatePicker inputDatePicker)
    at C1.Win.C1InputPanel.InputDatePicker.CreateElement()
    at C1.Win.C1InputPanel.InputComponent..ctor()
    at C1.Win.C1InputPanel.InputDatePicker..ctor()
    at Jafrnas.IForm.AddDate(InputItem item, Int32 idx) in D:\\Nastouh Program\\Abjad\\Jafrnas\\Jafrnas\\IForm.cs:line 81
    at Jafrnas.IForm.IForm_Load(Object sender, EventArgs e) in D:\\Nastouh Program\\Abjad\\Jafrnas\\Jafrnas\\IForm.cs:line 67
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)"


  • Replied 16 June 2019, 6:20 am EST

    I check with other calendar like hijri.
    only work with Gregorian
  • Replied 16 June 2019, 5:26 pm EST

    Hi,

    I can observe this issue. I've asked the developers to look into this [Internal Tracking ID: 384920].
    I'll update this thread as soon as we receive any information from them.

    Thanks,
    Jitender
  • Replied 21 June 2019, 2:22 am EST

    I solved the problem with InputControlHost and C1DateEdit but you can go on to solved the problem.
  • Replied 23 June 2019, 3:04 pm EST

    Hi,

    Thanks for sharing your workaround for the issue. I'm sure it will be helpful for anyone else who might face this issue while the bug is being fixed.

    Regards,
    Jitender
  • Replied 10 September 2019, 5:05 pm EST

    Hi,

    This issue has been fixed in the latest hotfix build (4.*.20192.382).
    You can download the fixed builds from this link:
    http://prerelease.componentone.com/hotfixes/dotnet/C1WinForms-452_4.5.20192.382.zip
    http://prerelease.componentone.com/hotfixes/dotnet/C1WinForms.4_4.0.20192.382.zip

    Regards,
    Jitender
Need extra support?

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

Learn More

Forum Channels