composite filter

8 posts, 1 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 18 Jun 2012 Link to this post

    if i add a filterdescriptor derectily to a radgridview attached to a raddatapager and a raddomaindatasource
    the raddomaindatasource (set to autoload) does a load automatically

    if i add a compositefilter directly to a radgridview attached to a raddatapager and a raddomaindatasource
    the raddomaindatasource (set to autoload) also does a load automatically

    but if i add a filterdescriptor to a compositefilter that is already attached to the radgridview a load is not performed

    this seems inconsistenet to me.

    thanks
    dco
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 21 Jun 2012 Link to this post

    Hi,

     I have tested the described scenario. Once I changed the FilterDescriptors in the already attached CompositeFilterDescriptor the GridView was filtered again. Generally as long as something changes, be it something very small or absolutely everything, the filtering expression is rebuilt from scratch and re-executed against the source collection in order to get the new fresh view of the data.

    May I ask you to share how do you define the filter in both the cases and when do you change it?

    Greetings,
    Didie
    the Telerik team

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

  3. DevCraft banner
  4. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 21 Jun 2012 Link to this post

    I an not saying the radgridview is not filtering, in fact it is.
    Rather no new load from the datasource(ria in my case) is triggered.

    so it goes something like this

    add a filterdescriptor to the grid
    domaindata source does load

    add a compositefilter to the grid
    domaindata source does load

    add a compositefilter to the grid
    domaindata source does load
    add a filterdescriptor to compositefilter
    domaindataa source does not load
    radgridview filters locally.

    thats the behavior i observed

    thanks
    dco


  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Jun 2012 Link to this post

    Hello,

     Thank you for the clarifications. We were able to encounter the behaviour as you have described it. 

    We will need to discuss whether this behaviour should be changed. I will update the thread once I have more relevant information to share.

    Regards,
    Didie
    the Telerik team

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

  6. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Jun 2012 Link to this post

    Hello,

    In regard to our previous conversation, I would recommend you to work with the FilterDescriptors of the RadDomainDataSource directly. You could check this online demo for an example.

    I hope this will work good for your scenario.

    All the best,
    Didie
    the Telerik team

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

  7. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 27 Jun 2012 Link to this post

    thanks

    yes i rewrote it as just filterdescriptors instead of using the composite
    this works for my current need.
    but i could forsee where in a more complex situation the composite filter might be advantageous.

    thanks Didie
    dco
  8. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jun 2012 Link to this post

    Hello,

    We will investigate this issue.

    But when you add the descriptors directly to RadDomainDataSource you should be able to use any number of nested CompositeFilterDescriptors -- is that not the case? Can you please try this -- do exactly the same but do not add the CompositeFilterDescriptor to the grid but to the RadDomainDataSource.FilterDescriptors. Isn't this working properly?

    Greetings,
    Ross
    the Telerik team

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

  9. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 28 Jun 2012 Link to this post

    i see what your saying

    add the compositedescriptors to the domaindatasource instead of the gridview

    i will investigate

    thanks
    dco
Back to Top
DevCraft banner