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

FetchData being called twice on initial load?

1 Answer 39 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
goodbar
Top achievements
Rank 2
goodbar asked on 09 Nov 2013, 08:30 AM

Hello - Per the RadCalendar example, I placed an override for FetchData in my viewmodel that inherits from AppointmentSource


public override void FetchData(DateTime startDate, DateTime endDate)

{

try

{

if (appts == null)

{

appts = new Appointments();

appts.SearchCompleted += new EventHandler<AppointmentsSearchEventArgs>(appts_SearchCompleted);

}

AppointmentsLoading = true;

appts.SearchAsync(startDate, endDate, null);

}

catch (Exception ex)

{

MessageBox.Show(ex.Message);

}

}



For some reason though, it appears that FetchData is called twice on initial load.  Is there any way to prevent that?



1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 14 Nov 2013, 08:52 AM
Hi Joe,

Thank you for writing.

You are right that FetchData is called twice on initial load. We are going to fix this for our Service Pack release in the end of the month.

I have updated your telerik points for your cooperation.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Calendar
Asked by
goodbar
Top achievements
Rank 2
Answers by
Todor
Telerik team
Share this question
or