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

Handling RadDateTimePicker.Calendar.DefaultViewChanged event

2 Answers 39 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Duane
Top achievements
Rank 1
Duane asked on 30 Sep 2010, 10:43 AM
Hi Guys,

Please can any one advise if there is a way to handle the Handling "DefaultViewChanged" event of the RadDateTimePicker's Calendar in the code behind?

I have tried using...
AddHandler fdCourseStartDateDateTimePicker.Calendar.DefaultViewChanged, AddressOf fdCourseStartDateDateTimePicker_Calendar_DefaultViewChanged
...to hook up to...
Protected Sub fdCourseStartDateDateTimePicker_Calendar_DefaultViewChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs) 
        System.Diagnostics.Debug.WriteLine("")
    End Sub

...but this does not seems to work. Putting a break point in the handler method shows it is never reached.

Any help appreciated.

Best regards,
Duane.

(Edited to remove Typo!)

2 Answers, 1 is accepted

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

The event will fire for the RadDatePicker only of you have autopostback for the calendar component in the DatePicker control. However you could not set autopostback ="true" for the calendar in DatePicker control. I would suggest you to refer use the solution provided in the following code library for overcoming this behavior.


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
0
Duane
Top achievements
Rank 1
answered on 08 Nov 2010, 10:18 AM
Thank you.
Tags
Ajax
Asked by
Duane
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Duane
Top achievements
Rank 1
Share this question
or