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

Is there a LoadDelay property for QDSCV

2 Answers 69 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 18 Feb 2011, 06:07 PM
Hi;
I see the RADomainDataSource has a LoadDelay, but I don't see that property in the QDSCV collection. Can you elaborate on this please?

Thanks!
..Ben

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 21 Feb 2011, 10:25 AM
Hello Ben Hayat,

LoadDelay depends on a DispatcherTimer to operate. The DispatcherTimer (and Dispatcher) is something that pertains to the UI and Controls only. It is UI-specific.

Since the QDSCV is not a control, it has no Dispatcher associated and is not allowed to get involved in UI-specific stuff. It is not its job to decide when to load. Someone from the outside has to command the QDSCV and tell it when to load. In the default case this is the RadDomainDataSourceControl. In the case when the QDSCV is inside a custom view model -- it's up to you.

Since the QDSCV is always used inside a ViewModel, you can develop *any kind* of timing logic in the View by using Dispatchers and DispatcherTimers. When your logic *decides* that it is time for the QDSCV to load, you should simply call its Load method and instruct it to Load.

To learn more about how RadDomainDataSource does all these Dispatcher stuff, I suggest that you take a look at its source code.

I hope this helps.

Greetings,
Ross
the Telerik team
0
Ben Hayat
Top achievements
Rank 2
answered on 21 Feb 2011, 03:37 PM
Great explanation Ross; Thanks!
Tags
DomainDataSource
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Ben Hayat
Top achievements
Rank 2
Share this question
or