Hi,
I am using RadGridView . when i open fileter option in Gridview it opens with Filter conditin as "Is equal to" . But i need to set default filter conditin as "Contains".
Thanks
3 Answers, 1 is accepted
0
Ivan Ivanov
Telerik team
answered on 13 Apr 2011, 08:03 AM
Hi kannan,
For extensive information on changing FilteringControl operator's default value check this thread, please. Do not hesitate to contact us immediately if you have any further inquiries.
Kind regards,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Thanks.i can able to set filter condition "Contains" through code behind. But in designer view i am getting an error.
I am confusing with below codes
<my:MyViewModelx:Key="MyViewModel"/>
where you have used the MyViewModel .
i have added the <my:MyFilteringControl x:Key="MyViewModel"/>
then i have added the DataContext="{StaticResource MyViewModel}" in Grid . I am binding the Radgridview with DomainDatasource. so after that i am getting an Error "cannot convert FilteringViewModel to DomainDatasource"
or Is it possible to set the filter condition through code behind without assigning the column position like var nameColumn = (GridViewBoundColumnBase)this.clubsGrid.Columns[0];
I have prepared a sample project for you, utilizing the source code from the forum article. Please, refer to it and inform us if this approach meets your requirements.
Best wishes,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items