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

SelectionChanged event not firing

1 Answer 155 Views
Calendar & Scheduling
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 05 Oct 2015, 02:08 PM

Since installing the Q3 trial, the code which I've been executing has stopped working once I've changed the selected date. 

public MyCalendar()
{
     InitializeComponent();
     radCalendar.SelectionChanged += RadCalendar_SelectionChanged;
}

 

private void RadCalendar_SelectionChanged(object sender, ValueChangedEventArgs<object> e)
{
     DateTimeSelected = radCalendar.SelectedDate;
     List<IAppointment> calendar = (List<IAppointment>)radCalendar.AppointmentsSource;
     var selectedAbsences = calendar.Where(a => DateTimeSelected.Value.Date >= a.StartDate.Date && DateTimeSelected.Value.Date <= a.EndDate.Date).Select(a => a);
}

Can anyone give any advice as to why this is not firing?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 07 Oct 2015, 08:47 AM
Hi Dan,

The reason for the observed problem is that we made a change in the way of initializing our controls for XamarinForms. Since our 2015 Q3 release we added an explicit initialization of our controls in every native project. You just need to add invocation to the "TelerikForms.Init()" method (and reference to the corresponding binary) in every native main project file. This new requirement is described in more details in the documentation.

Regards,
Vladislav
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Calendar & Scheduling
Asked by
Dan
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or