MVVM + RadGridView + FilterDescriptors

4 posts, 0 answers
  1. Naresh
    Naresh avatar
    31 posts
    Member since:
    Mar 2009

    Posted 24 Jan 2011 Link to this post

    Hello,

    First of all, a big THANK YOU to Telerik for developing the RadDomainDataSource. It's capabilities are greatly needed in our current project. You guys are the best in the business!

    Now on to my problem. It appears that the automatic synchronization of the FilterDescriptors is not working. I have bound a RadGridView to a QueryableDomainServiceCollection on my view model. Everything is working great except for the fact the grid's built in filtering controls are not working. I select a condition, hit Filter and nothing happens. It does not matter what column I try it on. Everything I can find says that there's no extra code needed for the synchronization to occur. Am I missing something?

    When I'm running this test there's one FilterDescriptor in the collection (set by an external drop down). That manually added FilterDescriptor is working perfect.

    Thanks,
    Brian
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Jan 2011 Link to this post

    Hi Brian,

    Can you please open a separate support ticket and send us a runnable sample project that reproduces this behavior. We will debug it and see what is going wrong.

    Thanks in advance.

    All the best,
    Ross
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Naresh
    Naresh avatar
    31 posts
    Member since:
    Mar 2009

    Posted 24 Jan 2011 Link to this post

    Hi Ross,

    By building a sample app I found the issue. It was very simple. I had AutoLoad set to False so of course nothing was happening when I selected a filter. 

    Thanks,
    Brian
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 25 Jan 2011 Link to this post

    Hi Brian,

    You are correct. When you have AutoLoad set to true, when anything that affects the query changes, AutoLoad will be requested and a Load will occur after a time period equal to the LoadDelay property. Using LoadDelay you can "gather" several changes and "send" them to the server at once instead of making a request every time something changes. Here is the online example about LoadDelay.

    Greetings,
    Ross
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top