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

How to hide programaticly rows with IFilterDescriptor and IFilteringControl?

0 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kity
Top achievements
Rank 2
kity asked on 07 Aug 2014, 12:42 PM
 
 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;
  }
 }
}

No answers yet. Maybe you can help?

Tags
GridView
Asked by
kity
Top achievements
Rank 2
Share this question
or