/// <summary>
 /// Disposes all the resources used by the <see cref="Syncfusion.UI.Xaml.Grid.CheckboxFilterControl"/> class.
 /// </summary>
 /// <param name="isDisposing">Indicates whether the call is from Dispose method or from a finalizer.</param>
 protected virtual void Dispose(bool isDisposing)
 {
     if (isdisposed) return;
     UnWireEvents();
     if (isDisposing)
     {
         if (this.previousItemSource != null)
         {
             previousItemSource.Clear();
             previousItemSource = null;
         }
         this.Loaded -= OnCheckboxFilterControlLoaded;
         if (gridFilterCtrl != null)
             gridFilterCtrl = null;
     }
     isdisposed = true;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Syncfusion.UI.Xaml.Grid.GridFilterItemsPopulatedEventArgs"/> class.
 /// </summary>
 /// <param name="itemsSource">
 /// The list of filter element that were loaded in filter control.
 /// </param>
 /// <param name="column">
 /// The corresponding column related to the event.
 /// </param>
 /// <param name="filterControl">
 /// The corresponding filter control where the filter items are loaded.
 /// </param>
 /// <param name="originalSource">
 /// The source of the event.
 /// </param>
 public GridFilterItemsPopulatedEventArgs(IEnumerable <FilterElement> itemsSource, GridColumn column, GridFilterControl filterControl, object originalSource)
     : base(originalSource)
 {
     this.ItemsSource   = itemsSource;
     this.column        = column;
     this.FilterControl = filterControl;
 }