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

A few questions

5 Answers 34 Views
EntityFrameworkDataSource
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 19 Dec 2011, 06:47 PM
Is there anyway to delay the execution of the query? What I'd like to do is create the datasource. Bind a DataFilter to it, then bind a gridview to the filtered source. But I'd like to not show any results in the gridview until the user has added filters. Basically use this as a searching mechanism.

Is this possible?

Also, are there any samples on how to use this in an MVVM scenario using QueryableEntityCollection<T> in the viewmodel?

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Dec 2011, 10:12 AM
Hello Rayne,

Currently there is no such possibility out-of-the-box, but I hope that I will be able to implement that functionality in early January. I plan to add an AutoLoad property to the control. When set to false, the query will not be executed unless you manually call the Load() method. When AutoLoad is true the query will be executed against the server each time it changes, i.e. someone adds a new filter.

I hope this will help.

Best wishes,
Ross
the Telerik team

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

0
Rayne
Top achievements
Rank 1
answered on 21 Dec 2011, 02:22 PM
Thanks! That would be great.
0
Rayne
Top achievements
Rank 1
answered on 05 Jan 2012, 10:11 PM
Can you provide any information on the 2nd question in my original post? Thanks.
0
Rossen Hristov
Telerik team
answered on 06 Jan 2012, 09:12 AM
Hello,

Currently, we do not have such an example. But it should be almost similar to this one, since their API's are very similar. Quite similar in fact, since both of them inherit from QueryableCollectionView.

Regards,
Ross
the Telerik team

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

0
Rossen Hristov
Telerik team
answered on 11 Jan 2012, 02:16 PM
Hi,

Unfortunately, implementing an AutoLoad property for the control would be very complex due to the synchronous nature of EntityFramework and we would have to basically re-write the control almost from scratch. This huge effort combined with the fact that the feature request has zero votes in our system means that unfortunately we will not be able to add such a property to the control.

Please, excuse us for the inconvenience caused.

Kind regards,
Ross
the Telerik team

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

Tags
EntityFrameworkDataSource
Asked by
Rayne
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Rayne
Top achievements
Rank 1
Share this question
or