A few questions

6 posts, 0 answers
  1. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 19 Dec 2011 Link to this post

    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?
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Dec 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 21 Dec 2011 Link to this post

    Thanks! That would be great.
  5. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 05 Jan 2012 Link to this post

    Can you provide any information on the 2nd question in my original post? Thanks.
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 06 Jan 2012 Link to this post

    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 >>

  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 11 Jan 2012 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready