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

Problem with accessing CalendarView.ViewStartDate

1 Answer 52 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
iTools
Top achievements
Rank 1
iTools asked on 12 Jul 2010, 03:46 AM
Hello.

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?

Cheers.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Jul 2010, 01:17 PM
Hi,

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
Tags
Calendar
Asked by
iTools
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or