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

Filtering for template column

2 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Tran
Top achievements
Rank 1
Kevin Tran asked on 07 Jul 2010, 08:21 AM
Hey support,

I appreciate your quick reply for my previous posts, Here i stuck with some basic issue again. I am displaying a long string in my grid, naturally my client want that to be wrapped.
I set following properties

IsFilteringAllowed="True"  


  <telerikGridView:GridViewDataColumn Header="Customer Name" Width="200" IsFilterable="True" DataMemberBinding="{Binding }" > 
                    <telerikGridView:GridViewDataColumn.CellTemplate> 
                        <DataTemplate > 
                            <TextBlock Text="{Binding CustomerName}"  
                                           TextWrapping="Wrap" 
                                            
                                           TextAlignment="Left"
                            </TextBlock> 
                        </DataTemplate> 
 
                    </telerikGridView:GridViewDataColumn.CellTemplate> 
 
                </telerikGridView:GridViewDataColumn> 

Now I am unable to apply filtering for this column, even filter Symbol is not showing up.
Any help?

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 07 Jul 2010, 08:25 AM
Hello Kevin Tran,

Please set the DataMemberBinding of the column to the respective field you want to filter/sort on:

<telerikGridView:GridViewDataColumn Header="Customer Name" Width="200" 
 DataMemberBinding="{Binding CustomerName}" >

This is described in our troubleshooting article:
Cannot group, sort and filter a specific column


All the best,
Veskoni
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
Kevin Tran
Top achievements
Rank 1
answered on 08 Jul 2010, 05:53 AM
Hey thanks for the reply . I Fixed this issue, Forgot to delete the post 
Tags
GridView
Asked by
Kevin Tran
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Kevin Tran
Top achievements
Rank 1
Share this question
or