FindControl to get Nav/FastNav links?

2 posts, 0 answers
  1. Andrew Benson
    Andrew Benson avatar
    14 posts
    Member since:
    Jan 2005

    Posted 24 Feb 2010 Link to this post

    I read in an earlier post that the controls rendered in the calendar are rendered as text--not as server controls. I'm assuming that also holds true for the nav/fast nav controls.

    Is there any way to get a hold of these "controls" before the page is rendered? What I'd like to do is change the NavigateUrl for those controls and replace the "#" with something like "mycal.aspx?MonthYear=2,2010" That way a user can bookmark a specific month in my events calendar.

    I suppose I could handle the OnCalenderViewChanging event and create the redirect from there.

  2. Veli
    Veli avatar
    2002 posts

    Posted 01 Mar 2010 Link to this post

    Hi Andrew,

    You can use RadCalendar's client-side OnCalendarViewChanged event for this purpose. Inside the event handler, you can get the current focused date in the calendar. The current focused date will be returned in a triplet array in the form [year, month, date]. You can then use it to set Here is a sample implementation:

    function calendarViewChanged(sender, args)
        var focusedDate = sender.get_focusedDate(); = "?MonthYear=" + focusedDate[1] + "," + focusedDate[0];

    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.
Back to Top