This question is locked. New answers and comments are not allowed.
Hello Telerik ! :)
Today I have a problem with a column filter binded on a boolean value.
My data object (RIA partial client side) :
The gridView :
The filter of the grid view :
So, the filter work when I set the ItemsSource on the grid.
When I notify the change of "IsConnected" to "False" in my code behind the checkBox in the grid changed (checked to unchecked).
But now I would like that the line disappears because the filter must show only "True" elements !
How to do this please ?
Thanks
JC
Today I have a problem with a column filter binded on a boolean value.
My data object (RIA partial client side) :
public partial class Element { ... public bool IsConnected { get { return this.CurrentParametresReleves.Any(hp => hp.Action > 0); } }
public void RaiseIsConnectedChanged()
{
this.RaisePropertyChanged("IsConnected");
}
...}The gridView :
<tlk:RadGridView x:Name="_ListElements" > <tlk:RadGridView.Columns> ... <tlk:GridViewCheckBoxColumn Header=" " DataMemberBinding="{Binding Element.IsConnected, Mode=OneWay}" IsReadOnly="True" IsResizable="False" UniqueName="IsConnectedColumn" /> ... </tlk:RadGridView.Columns></tlk:RadGridView>The filter of the grid view :
GridViewColumn isConnectedColumn = _ListElements.Columns["IsConnectedColumn"];var isConnectedFilter = new ColumnFilterDescriptor((IDataFieldDescriptor)isConnectedColumn);isConnectedFilter.DistinctFilter.DistinctValues.Add(true);_ListElements.FilterDescriptors.Add(isConnectedFilter);So, the filter work when I set the ItemsSource on the grid.
When I notify the change of "IsConnected" to "False" in my code behind the checkBox in the grid changed (checked to unchecked).
But now I would like that the line disappears because the filter must show only "True" elements !
How to do this please ?
Thanks
JC