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

composite filter

7 Answers 114 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 18 Jun 2012, 05:16 PM
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

7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Jun 2012, 08:25 AM
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 >>

0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 21 Jun 2012, 11:19 AM
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


0
Dimitrina
Telerik team
answered on 25 Jun 2012, 05:17 PM
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 >>

0
Accepted
Dimitrina
Telerik team
answered on 27 Jun 2012, 12:14 PM
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 >>

0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 27 Jun 2012, 12:47 PM
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
0
Rossen Hristov
Telerik team
answered on 27 Jun 2012, 12:51 PM
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 >>

0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 28 Jun 2012, 10:12 AM
i see what your saying

add the compositedescriptors to the domaindatasource instead of the gridview

i will investigate

thanks
dco
Tags
DomainDataSource
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Dimitrina
Telerik team
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Rossen Hristov
Telerik team
Share this question
or