Excel like filters in SfMultiColumnDropDown

Hello,

The SfDataGrid has the capability to show excel like filters: https://help.syncfusion.com/wpf/datagrid/filtering#excel-like-ui-filtering 

Since the SfMultiColumnDropDown  is using the SfDataGrid, I was wondering if it is possible to enable the excel like filtering feature when using the SfMultiColumnDropDown.  I don't see it mentioned in the manuals or samples. 

If possible, could you please provide a sample.

Kind regards,


Niels van Strien




2 Replies

NV NM van Strien March 28, 2022 11:27 AM UTC

Dear customer support,


I found out that I can enable the excel like filters on the grid columns.


However, I wanted to wrap the SfMultiColumnDropDown  in a TextInputLayout and was not able to achieve this.


Kind regards,


Niels van St



MA Mohanram Anbukkarasu Syncfusion Team March 28, 2022 12:42 PM UTC

Hi Niels van Strien, 
 
We suspect that your requirement is to enable TextWrapping for the columns in the MultiColumnDropDown. You can achieve this as shown in the following code example.  
 
Code example :  
 
this.multiColumnDropDown.Loaded += MultiColumnDropDown_Loaded; 
 
private void MultiColumnDropDown_Loaded(object sender, RoutedEventArgs e) 
{ 
    this.multiColumnDropDown.GetDropDownGrid().AllowFiltering = true; 
    this.multiColumnDropDown.GetDropDownGrid().AutoGeneratingColumn += MainWindow_AutoGeneratingColumn; 
} 
 
private void MainWindow_AutoGeneratingColumn(object sender, Syncfusion.UI.Xaml.Grid.AutoGeneratingColumnArgs e) 
{ 
    (e.Column as GridTextColumn).TextWrapping = TextWrapping.Wrap; 
} 
 
Please revert to us with details if we have misunderstood your requirement.  
 
Regards, 
Mohanram A. 
 


Loader.
Up arrow icon