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
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?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
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 >>
add the compositedescriptors to the domaindatasource instead of the gridview
i will investigate
thanks
dco