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

Is There Any Possible way to Show RadCalender Hijri

5 Answers 209 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Abdallah
Top achievements
Rank 1
Abdallah asked on 01 Feb 2011, 09:00 AM
Please can you help me on this 
i try this code 

ViewState["CallenderType"] = rbGregHijri.SelectedValue;
 
        CultureInfo info = new CultureInfo ( ViewState["CallenderType"] == null ? "ar-SA" : ViewState["CallenderType"].ToString ( ) );
       Thread.CurrentThread.CurrentCulture = info;
       Thread.CurrentThread.CurrentUICulture = info;
        object calendar;
        if (info.ToString ( ) == "ar-SA")
        {
            calendar = new HijriCalendar ( );
            info.DateTimeFormat.Calendar = (HijriCalendar)calendar;
            Thread.CurrentThread.CurrentCulture.DateTimeFormat.Calendar = new HijriCalendar ( );
            Thread.CurrentThread.CurrentUICulture.DateTimeFormat.Calendar = new HijriCalendar ( );
        }
        else
        {
            calendar = new GregorianCalendar ( );
            info.DateTimeFormat.Calendar = (GregorianCalendar)calendar;
            Thread.CurrentThread.CurrentCulture.DateTimeFormat.Calendar = new GregorianCalendar ( );
            Thread.CurrentThread.CurrentUICulture.DateTimeFormat.Calendar = new GregorianCalendar ( );
        }
        this.rdtpPriceFrom.Culture = info; 
        this.rdtpPriceFrom.Calendar.CultureInfo = info;  


Regards

5 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Feb 2011, 04:04 PM
Hello Abdallah,

You can try implementing the approach from the following CodeLibrary article (the second archive attached). I hope it helps.

Kind regards,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Abdallah
Top achievements
Rank 1
answered on 06 Feb 2011, 01:05 PM
Hey Thanks for your fast response,
Please I got An Error , please see the attachements

Regards
0
Tsvetina
Telerik team
answered on 07 Feb 2011, 09:59 AM
Hi Abdallah,

I tested the sample code from the article with the latest release of RadControls and it worked without error. It should be some problem caused by the configuration of your web site (e.g. working in medium trust).

Greetings,
Tsvetina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
moumen_o
Top achievements
Rank 1
answered on 03 Jul 2011, 12:28 PM
r.a.d.datepicker does not support Hijri dates .. that's what the article says
but this article is so old(2006),  does the new one support Hijri dates ?
0
Tsvetina
Telerik team
answered on 04 Jul 2011, 03:36 PM
Hello,

The RadCalendar controls still do not support the Hijiri calendar. The problem is that the client-side features of the calendar controls cannot be implemented for it and there is no point in creating just a server-based control, since it would be equivalent to the native asp:Calendar.

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Calendar
Asked by
Abdallah
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Abdallah
Top achievements
Rank 1
moumen_o
Top achievements
Rank 1
Share this question
or