We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfMultiColumnDropDownControl Configuration

Hello good afternoon.

I have questions about some component-specific settings.

How to set the SfMultiColumnDropDownControl component popup to fit the content. That is, it does not allow item list data to be hidden. Preferably for long text items it is on two or more lines.

3 Replies

SS Susmitha Sundar Syncfusion Team September 6, 2019 01:36 PM UTC

Hi Tech, 
Thank you for using Syncfusion controls. 
Your requirement can be achieved by SfMultiColumnDropDownControl.Columns TextWrapping property. If you set the TextWrapping property as Wrap. Popup list content text will be Wrap to next line. And you need to set the height for the DropDownGrid for multiple lines. Please refer the below code snippet, 
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"  
                                                 ItemsSource="{Binding Orders,IsAsync=True}"  
                <syncfusion:GridTextColumn MappingName="OrderID" /> 
                <syncfusion:GridTextColumn MappingName="CustomerName"  /> 
                <syncfusion:GridTextColumn MappingName="Country" TextWrapping="Wrap" /> 
  SfDataGrid grid; 
  GridRowSizingOptions gridRowResizingOptions = new GridRowSizingOptions(); 
  double autoHeight; 
     private void SfMultiColumn_PopupOpened(object sender, PopupOpenedEventArgs e) 
        grid = this.sfMultiColumn.GetDropDownGrid(); 
        grid.QueryRowHeight += Grid_QueryRowHeight; 
   private void Grid_QueryRowHeight(object sender, QueryRowHeightEventArgs e) 
       if (this.grid.GridColumnSizer.GetAutoRowHeight(e.RowIndex, gridRowResizingOptions, out autoHeight)) 
           if (autoHeight > 24) 
               e.Height = autoHeight; 
               e.Handled = true; 
Please contact us for further assistance. 
Susmitha S 

TS Tech Shop September 6, 2019 05:18 PM UTC

My version is, some properties do not appear to me. What version are you in?

SS Susmitha Sundar Syncfusion Team September 9, 2019 08:53 AM UTC

Hi Tech,   
Thanks for the update.   
We have checked the provided sample in version and it works fine in our end. Please refer the below sample.    
 Could you please provide us more information about, which properties do not appear in your sample? It will be helpful for us to investigate further.     
Susmitha S   

Live Chat Icon For mobile
Up arrow icon