Valid values are between 1318 and 1450, inclusive. Parameter name: year

13 posts, 0 answers
  1. Ramzan Pukhraj
    Ramzan Pukhraj avatar
    7 posts
    Member since:
    Dec 2009

    Posted 10 Feb 2010 Link to this post

    Hi Dear,

    Please tell me what i did wrong?

    I just drag rad calender into rad tab control and assign culture = "Arabic Saudi arabia"

    I am not able to assign
    I am getting below message
    (Valid values are between 1318 and 1450, inclusive.
    Parameter name: year
    )

    your immediate reply will be appreciated

    Thanks & Regards,

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 11 Feb 2010 Link to this post

    Hi Ramzan Pukhraj,

    You can try the following as a workaround:

                GregorianCalendar calendar = new GregorianCalendar();
                CultureInfo cinfo = new CultureInfo("ar-SA");
                cinfo.DateTimeFormat.Calendar = calendar;          
                this.radDateTimePicker1.Culture = cinfo;

    Please write us back again, if you need more information. 

    Best wishes,
    Boyko Markov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ramzan Pukhraj
    Ramzan Pukhraj avatar
    7 posts
    Member since:
    Dec 2009

    Posted 14 Feb 2010 Link to this post

    Hi Boyko,

    Thanks for below information.
    Let me ellaborate more, how i want to use this calender?
    if (application UICulture='ar-SA')
        this calender shows "Gegorian Month Name" in Arabic

    how can i do above suedo code in C#.Net code?

    Regards,
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 17 Feb 2010 Link to this post

    Hi Ramzan Pukhraj,

    Thank you for writing. To check whether the current culture is "ar-SA" and then apply the new culture settings to RadCalendar, you can do the following:

    if (CultureInfo.CurrentCulture.Name == "ar-SA")
                {
                    GregorianCalendar calendar = new GregorianCalendar();
                    CultureInfo cinfo = new CultureInfo("ar-SA");
                    cinfo.DateTimeFormat.Calendar = calendar;
                    this.radDateTimePicker1.Culture = cinfo;
                }

    Please contact us again if you need more information.

    Kind regards,
    Boyko Markov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Ramzan Pukhraj
    Ramzan Pukhraj avatar
    7 posts
    Member since:
    Dec 2009

    Posted 17 Feb 2010 Link to this post

    Hi Boyko,

    I think, I should explain again, may be I wasn't clear before.
    I have dual language application
    1. English
    2. Arabic

    Now when user click on Arabic, my calender should show Jan, Feb, Mar,Apr..... & days Sun,Mon,Tue....  in Arabic Language.
    can telerik calender control support this?

     
    Regards,
    Ramzan
  7. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 19 Feb 2010 Link to this post

    Hi Ramzan Pukhraj,

    I have prepared a demo which demonstrates changing the Culture of RadCalendar by clicking two buttons - English and Arabic. Clicking on the Arabic button will modify the Jan, Feb, .... and Monday, Tuesday, .... in Arabic.

    I hope this will help you. Please feel free to contact us again, if you need more information.

    All the best,
    Boyko Markov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Ramzan Pukhraj
    Ramzan Pukhraj avatar
    7 posts
    Member since:
    Dec 2009

    Posted 20 Feb 2010 Link to this post

    Thank you Boyko , this is perfect, I got my answer.
    Thanks again.

  9. Haythem
    Haythem avatar
    2 posts
    Member since:
    Mar 2008

    Posted 23 Nov 2011 Link to this post

    I have the same problem but with dotnetnuke website
    we installed the arabic language pack ar-sa
    but we get this error in different pages
    like Admin>site settings

    Valid values are between 1318 and 1450, inclusive. Parameter name: year

    we tried to find out in the database or in the web.config
    but we couldnt find how to do it, can you help us please
  10. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 28 Nov 2011 Link to this post

    Hello Haythem,

    Thank you for writing.

    This forum concerns RadCalendar control which is part of the RadControls for WinForms suite of Telerik. Is your issue related to this suite? If so, please provide me with more details regarding your scenario, so I can provide you with support. Otherwise, please address your questions in the appropriate forums.

    I am looking forward to your reply.
     
    Regards,
    Stefan
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  11. Haythem
    Haythem avatar
    2 posts
    Member since:
    Mar 2008

    Posted 29 Nov 2011 Link to this post

    I'm using dotnetnuke and im using it in arabic, and i got this error, so i  was trying to solve this issue
  12. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 30 Nov 2011 Link to this post

    Hello Haythem,

    Thank you for your confirmation. Please open a new thread in the appropriate forum section as requested by my colleague Stefan.

    Greetings,
    Nikolay
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  13. Mazen
    Mazen avatar
    1 posts
    Member since:
    May 2012

    Posted 17 May 2012 Link to this post

    Hello Nikolay,

    I believe this is an issue with your support of the Hijri calendar (for ar-SA). I'm facing the same issue too. You can have a look at my post on the DNN forum. http://www.dotnetnuke.com/Resources/Forums/forumid/77/postid/455576/scope/posts.aspx#455576
    The calendar does appear correctly the first time but then the behavior is irregular.

    Check my post and let me know what do you think about it, and if you have any workaround or solution for this issue. I'm trying to use the datepicker in my own modules.

    Regards.
    Mazen
  14. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 17 May 2012 Link to this post

    Hi Mazen,

    Thank you for contacting Telerik support.

    Could you clarify which platform your question refers - ASP.NET or WinForms?

    I am looking forward to your reply.

    Kind regards,
    Peter
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready