This question is locked. New answers and comments are not allowed.
Hello again,
I have a gridview with a column where I show to properties : Activite (Activity) and Etat(State) as follows. The Activity property has a converter that show green color if value =1 and red if value=0.
The column is binded to the
I use the default column filter provided. When I click on the filter I receive the good tuple items from data in the gridview. However when I select an item to be filtered all the data are hidden.
Here you can find a screenshot about the filter result. I hope it helps.
How can I solve the problem? I've read some exemples provided by the forum but nothing solves my problem.
exemples:
http://www.telerik.com/community/forums/silverlight/gridview/custom-filter-of-column-bound-to-custom-object.aspx
http://www.telerik.com/community/forums/silverlight/gridview/binding-to-a-dictionary.aspx
Thanks for your help!
I have a gridview with a column where I show to properties : Activite (Activity) and Etat(State) as follows. The Activity property has a converter that show green color if value =1 and red if value=0.
<telerikGridView:GridViewDataColumn HeaderCellStyle="{StaticResource GridViewHeaderCellStyle}" UniqueName="EtatId" DataMemberBinding="{Binding EtatAndActivite}" Header="E" IsReadOnly="True" IsFilterable="True" IsGroupable="False"> <telerikGridView:GridViewDataColumn.CellTemplate> <DataTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition Height="{StaticResource InnerRowHeight}" /> <RowDefinition Height="{StaticResource InnerRowHeight}" /> <RowDefinition Height="{StaticResource InnerRowHeight}" /> <RowDefinition Height="{StaticResource InnerRowHeight}" /> <RowDefinition Height="{StaticResource InnerRowHeight}" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="{StaticResource InnerRowWidth}" /> </Grid.ColumnDefinitions> <views:ActiveViewControl Grid.Row="1" ActiveBrush="{Binding Activite, Converter={StaticResource ByteToActiveBrushConverter}}" /> <TextBlock Grid.Row="2" Text="{Binding EtatId}" Foreground="Maroon" FontWeight="Bold" TextAlignment="Center" /> <telerik:RadButton Grid.Row="3" Template="{StaticResource FlagTemplate}" Visibility="{Binding CreationAutomatique, Converter={StaticResource VisibilityConverter}}" /> </Grid> </DataTemplate> </telerikGridView:GridViewDataColumn.CellTemplate> </telerikGridView:GridViewDataColumn>The column is binded to the
EtatAndActivite property defined as a tuple from the properties binded in the cell templatepublic Tuple<String, byte> EtatAndActivite{ get { return new Tuple<string,byte>(EtatId,Activite); }}I use the default column filter provided. When I click on the filter I receive the good tuple items from data in the gridview. However when I select an item to be filtered all the data are hidden.
Here you can find a screenshot about the filter result. I hope it helps.
How can I solve the problem? I've read some exemples provided by the forum but nothing solves my problem.
exemples:
http://www.telerik.com/community/forums/silverlight/gridview/custom-filter-of-column-bound-to-custom-object.aspx
http://www.telerik.com/community/forums/silverlight/gridview/binding-to-a-dictionary.aspx
Thanks for your help!