Is There Any Possible way to Show RadCalender Hijri

6 posts, 0 answers
  1. Abdallah
    Abdallah avatar
    7 posts
    Member since:
    Jan 2011

    Posted 01 Feb 2011 Link to this post

    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

  2. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 03 Feb 2011 Link to this post

    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.
  3. Abdallah
    Abdallah avatar
    7 posts
    Member since:
    Jan 2011

    Posted 06 Feb 2011 Link to this post

    Hey Thanks for your fast response,
    Please I got An Error , please see the attachements

    Regards
  4. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 07 Feb 2011 Link to this post

    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.
  5. moumen_o
    moumen_o avatar
    8 posts
    Member since:
    Sep 2006

    Posted 03 Jul 2011 Link to this post

    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 ?
  6. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 04 Jul 2011 Link to this post

    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.

Back to Top