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

QueryableDomainServiceCollectionView not firing LoadedData

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 21 Jun 2012, 06:56 PM
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

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 26 Jun 2012, 08:08 AM
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 >>

Tags
General Discussions
Asked by
Jerome
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or