FetchData being called twice on initial load?

2 posts, 1 answers
  1. goodbar
    goodbar avatar
    6 posts
    Member since:
    Oct 2013

    Posted 09 Nov 2013 Link to this post

    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?



  2. Answer
    Todor
    Admin
    Todor avatar
    778 posts

    Posted 14 Nov 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top