Autofilter search and Select All

Jun 22, 2014 at 12:44 AM
Hi,

When using the search bar while column Autofilter popup is open, and clicking "Select All", it selects all filters instead of the results only.

Is this behaviour expected, and is there a way to change it?

This would make similar rows easier to add to the filter.

Thanks for this awesome control!
Jun 22, 2014 at 10:00 AM
Edited Jun 22, 2014 at 1:44 PM
EDIT: This selects the checkboxes, but does not do the actual filtering.

Managed to sort this out by editing DataGridGeneric.cs in source. This selects items based on the value of CheckedListItem.Hide when "(Select All)" is checked.

Changed:
 private void Checked(object sender, RoutedEventArgs e)
        {
    ///
                    foreach (var distictictValue in distictictValues)
                    {
                        if (Convert.ToString(distictictValue.Name) != "(Select All)" && distictictValue.IsSelectAll != "(Select All)")
                            distictictValue.IsChecked = true;

                    }
                    mainGrid.AutoFilterHelper.CurrentDistictValues = distictictValues;
                    mainGrid.AutoFilterHelper.RemoveAllFilter(CurrentGrid, CurrentColumn);
                    foreach (var c in distictictValues)
                    {                       
                        c.IsChecked = true;                        
                    }
         ///
        }
to
 private void Checked(object sender, RoutedEventArgs e)
        {
               ///
                    foreach (var distictictValue in distictictValues)
                    {
                        if (Convert.ToString(distictictValue.Name) != "(Select All)" && (distictictValue.IsSelectAll != "(Select All)" && !distictictValue.Hide))
                            distictictValue.IsChecked = true;

                    }
                    mainGrid.AutoFilterHelper.CurrentDistictValues = distictictValues;
                    mainGrid.AutoFilterHelper.RemoveAllFilter(CurrentGrid, CurrentColumn);
                    foreach (var c in distictictValues)
                    {
                        if (!c.Hide)
                        {
                            c.IsChecked = true;
                        }
                    }
            ///
        }