This is a migrated thread and some comments may be shown as answers.

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

12 Answers 281 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Ramzan Pukhraj
Top achievements
Rank 1
Ramzan Pukhraj asked on 10 Feb 2010, 11:30 PM
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,

12 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 11 Feb 2010, 08:40 AM
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.
0
Ramzan Pukhraj
Top achievements
Rank 1
answered on 14 Feb 2010, 12:11 PM
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,
0
Boyko Markov
Telerik team
answered on 17 Feb 2010, 08:35 AM
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.
0
Ramzan Pukhraj
Top achievements
Rank 1
answered on 17 Feb 2010, 11:47 AM
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
0
Boyko Markov
Telerik team
answered on 19 Feb 2010, 12:53 PM
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.
0
Ramzan Pukhraj
Top achievements
Rank 1
answered on 20 Feb 2010, 11:14 AM

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

0
Haythem
Top achievements
Rank 1
answered on 23 Nov 2011, 03:20 PM
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
0
Stefan
Telerik team
answered on 28 Nov 2011, 09:36 AM
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.

0
Haythem
Top achievements
Rank 1
answered on 29 Nov 2011, 01:17 PM
I'm using dotnetnuke and im using it in arabic, and i got this error, so i  was trying to solve this issue
0
Nikolay
Telerik team
answered on 30 Nov 2011, 09:33 AM
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.

0
Mazen
Top achievements
Rank 1
answered on 17 May 2012, 08:40 AM
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
0
Peter
Telerik team
answered on 17 May 2012, 02:18 PM
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 >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Ramzan Pukhraj
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Ramzan Pukhraj
Top achievements
Rank 1
Haythem
Top achievements
Rank 1
Stefan
Telerik team
Nikolay
Telerik team
Mazen
Top achievements
Rank 1
Peter
Telerik team
Share this question
or