'Declaration Public Class ChecklistFilter Inherits C1.DataFilter.ChecklistFilterBase
public class ChecklistFilter : C1.DataFilter.ChecklistFilterBase
'Declaration Public Class ChecklistFilter Inherits C1.DataFilter.ChecklistFilterBase
public class ChecklistFilter : C1.DataFilter.ChecklistFilterBase
This class is used to instantiate a filter which can be applied to the string/number/date type values. It displays a list of items and filters out the data based on the items selected in the list. The listing below provides the details about different options that can be set for the filter using this class.
private void InitializeChecklistFilter()
{
//Initialize the ChecklistFilter
ChecklistFilter checklistFilter = new ChecklistFilter();
//Sets the name of the data item property to which the current filter applies.
checklistFilter.PropertyName = "Brand";
//Sets the ItemsSource for the ChecklistFilter
checklistFilter.ItemsSource = _carsTable;
//Specify the path of the data field in the ItemsSource which provides the actual values
//for the checklist items.
checklistFilter.ValueMemberPath = "Brand";
//Sets the header text of the filter
checklistFilter.HeaderText = "Brand";
//Sets the layout type of the checklist
checklistFilter.LayoutType = C1.DataFilter.LayoutType.List;
//Sets the selection method for items of the checklist
checklistFilter.SelectionMode = C1.DataFilter.SelectionMode.Multiple;
//Shows the search box
checklistFilter.ShowSearchBox = true;
//Sets the count to items displayed in the checklist
checklistFilter.DisplayedItems = 5;
//Selects all the checklist items
checklistFilter.SelectAll();
//Adds the ChecklistFilter to the FilterCollection
c1DataFilter1.Filters.Add(checklistFilter);
}
System.Object
C1.DataFilter.Filter
C1.DataFilter.FilterWithSummary
C1.DataFilter.ChecklistFilterBase
C1.Win.DataFilter.ChecklistFilter