RadCalendar OnDayRender

6 posts, 0 answers
  1. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 16 May 2011 Link to this post

    There seems to be an issue with applying styles in the client side OnDayRender event.
    We've noticed that the style is applied correctly, however when the day is hovered over the style reverts to its original style that was applied before the OnDayRender event.
    We have a workaround applied by overriding the cell style in the hover event, however the behaviour seems to be incorrect in that it should be remembering the style applied on the client side?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 May 2011 Link to this post

    Hi Matt Cowen,

    I would suggest you to review the following online example which elaborates on this matter. Review the provided approach and let me know it helps.

    Greetings,
    Maria Ilieva
    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. Zura Chikhladze
    Zura Chikhladze avatar
    32 posts
    Member since:
    Jul 2009

    Posted 06 Sep 2011 Link to this post

    Hi,

    this is the case. on one page A  there is a hyperlink. on the page B there is the radcalendar that is used to show the different events (like meeteing, etc).

    my question is:

    how is it possible to redirect from the hyperlink (on page A) to the specific date of the radcalendar (on page B) that will show the event of that date?

    (for instance when i click on the link 19 August it will redirect to the 19 August calendar event that will be dispayed on the page)

    thank you in advance. chixo.

  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Sep 2011 Link to this post

    Hello Zura,

    Try the following steps:
    • Pass the required date as QueryString.
    • Retrieve the value from the navigated page.
    • set the SelectedDate and FocusedDate property to the retrieved date.
    <asp:HyperLink runat="server" NavigateUrl="~/RadGrid/calender.aspx?date=2/16/2008 12:15:12 PM">Click here to go to Calendar page</asp:HyperLink>

    C#(calendar.aspx.cs):
    protected void Page_Load(object sender, EventArgs e)
      {
          string dt = Request.QueryString["date"];
          DateTime dtnew=DateTime.Parse(dt);
          radCal1.FocusedDate = dtnew;
          radCal1.SelectedDate = dtnew;
      }

    Hope it helps.

    Thanks,
    Princy.
  5. Zura Chikhladze
    Zura Chikhladze avatar
    32 posts
    Member since:
    Jul 2009

    Posted 06 Sep 2011 Link to this post

    thank you so much. awesome.
  6. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 18 Oct 2011 Link to this post

    >Hi Matt Cowen,
    >
    >I would suggest you to review the following online example which elaborates on this matter. Review the provided approach and let me
    >know it helps.

    No, we are using the following approach but the issue persists:

    var cell = eventArgs.get_cell();
     
    if ($.inArray(parsedDate.toString(), datesWithEvents) >= 0) {
        $(cell).addClass("EventOccurring");
    } else {
        $(cell).removeClass("EventOccurring");
    }

    Any chance this has been resolved in recent releases?
Back to Top