Problem with accessing CalendarView.ViewStartDate

2 posts, 0 answers
  1. iTools
    iTools avatar
    28 posts
    Member since:
    Jun 2007

    Posted 11 Jul 2010 Link to this post


    With version 2008.3.1125.20 of Telerik.Web.UI, when setting AutoPostBack to true and referencing either CalendarView.ViewStartDate or CalendarView.ViewEndDate in a page's Init event handler, the Calendar does not go to the next or previous view.

    <asp:ScriptManager ID="ctlScriptManager" runat="server" />
    <telerik:RadCalendar ID="ctlCalendar" runat="server" AutoPostBack="true" />

    Private Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Init
        Dim d As Date = ctlCalendar.CalendarView.ViewStartDate
        Dim d1 As Date = ctlCalendar.CalendarView.ViewEndDate
    End Sub

    Is there a way to get the current calendar view's start and end date without it malfunctioning in this version?

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 14 Jul 2010 Link to this post


    Please try to get the needed items in the RadCalendar DayRender server event instead of Page_Init. Let me know if this makes any difference.

    All the best,
    Maria Ilieva
    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