How to hide programaticly rows?
bool: Visible is property in collection NasaShipsCollection
<
br
> <
telerik:RadGridView
ItemsSource
=
"{Binding Path=NasaShipsCollection, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay}"
<br> SelectionMode="Single" SelectedItem="{Binding Path=SelectedEvent, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=true, NotifyOnValidationError=true, Mode=TwoWay}" <
br
> AutoGenerateColumns="False" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" CanUserDeleteRows="False" IsFilteringAllowed="True"><
br
> <
telerik:RadGridView.Columns
><
br
> <
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding EShip}"
/> <
br
> <
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Visible, Mode=TwoWay}"
FilterMemberPath
=
"Visible"
IsFilterable
=
"True"
ShowFilterButton
=
"False"
><
br
> <
telerik:GridViewDataColumn.FilteringControl
><
br
> <
controls1:BoolenFilteringControl
/><
br
> </
telerik:GridViewDataColumn.FilteringControl
><
br
> </
telerik:GridViewDataColumn
><
br
> </
telerik:RadGridView.Columns
> <
br
> </
telerik:RadGridView
><
br
>
public partial class EventField : IDataErrorInfo, IFilterDescriptor
{
#region IFilterDescriptor public Expression CreateFilterExpression(Expression instance)
{
return instance;
}#endregion
}
public class BoolenFilteringControl :UserControl, IFilteringControl
{
private bool _isActive; public void Prepare(GridViewColumn columnToPrepare)
{
// throw new System.NotImplementedException();
} public bool IsActive
{
get
{
return true;
// return _isActive;
}
set
{
_isActive = value;
}
}
}