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

RadGrid With Filter Condition

3 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kannan
Top achievements
Rank 1
kannan asked on 13 Apr 2011, 06:24 AM
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

Sort by
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
0
kannan
Top achievements
Rank 1
answered on 13 Apr 2011, 03:11 PM
Hi Ivan Ivanov ,

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:MyViewModel x: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];


Thanks
0
Ivan Ivanov
Telerik team
answered on 18 Apr 2011, 10:00 AM
Hello kannan,

 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
Tags
GridView
Asked by
kannan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
kannan
Top achievements
Rank 1
Share this question
or