QueryableDomainServiceCollectionView not firing LoadedData

2 posts, 0 answers
  1. Jerome
    Jerome avatar
    87 posts
    Member since:
    Aug 2010

    Posted 21 Jun 2012 Link to this post

    var ctx = new PersonEventsViewContext();
    QueryView = new QueryableDomainServiceCollectionView<TestObject>(ctx, ctx.GetStupidShitQuery());
    QueryView.PropertyChanged += QueryView_PropertyChanged;
    QueryView.LoadingData += QueryView_LoadingData;
    QueryView.LoadedData += QueryView_LoadedData;
    QueryView.Load();

    The above code should begin a query, and then fire both the LoadingData and LoadedData events.

    void QueryView_LoadingData(object sender, LoadingDataEventArgs args)
    {
     
    }
     
    void QueryView_LoadedData(object sender, LoadedDataEventArgs args)
    {
        FromDate = QueryView.Min(i => i.DateTime).AddMonths(-1);
        ThruDate = QueryView.Max(i => i.DateTime + i.Duration).AddMonths(1);
        IsBusy = false;
    }

    The LoadingData event *is* fired. The LoadedData event *is not* fired. I have used the IE Developer Tools to confirm that the URL is being invoked, and the data is being returned, and the request exits with a 200 status code.

    What's up?

    [EDIT]

    The code above is from my ViewModel class. I have a RadTimeline bound to QueryView. When I remove the binding, LoadedData is invoked. This bug might actually involve the Timeline. =/ Though it's still really odd
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 26 Jun 2012 Link to this post

    Hi,

    We tried to reproduce this behavior on our end, but unfortunately we could not.

    I have attached a sample project. Can you please modify it so it does reproduce this behavior and we will debug it to see what is going on.

    Thanks in advance.

    Regards,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top