5.20231.904
5.20231.904

Custom Filter Types in FlexGrid

Use the FlexGridFilter's defaultFilterType property to determine whether the filter should be based on conditions, values, or both.

Use the showFilterButtons property to determine whether the filter editor should include buttons for sorting the columns.

// create grid and filter
  var theGrid = new wijmo.grid.FlexGrid('#theGrid', {
    itemsSource: data,
    allowSorting: false
  });
  var filter = new wijmo.grid.filter.FlexGridFilter(theGrid);

  // filter only by condition (not by value)
  filter.defaultFilterType = wijmo.grid.filter.FilterType.Condition;  

  // remove sort buttons
  filter.showSortButtons = false;