Wrap text to new line for items in MultiSelectDropdown popup

Hello Team,

I need to find a way to wrap the text to a new line for items with titles that exceed the width of the MultiSelectComponent dropdown instead of the current truncation with ellipsis. I've searched the forums and documentation (and tried to manually override the overflow behavior with CSS) without success.


Screenshot 2023-07-26 at 3.33.23 PM.png

Thank you for your support!


1 Reply

KP Kokila Poovendran Syncfusion Team July 27, 2023 07:39 AM UTC

Hi Stephen Roddewig,



Greetings from Syncfusion support!


We have thoroughly reviewed your request and are happy to provide you with a solution that addresses your requirement. We have overridden the CSS styles for the list items in the multiselect, allowing the text to wrap properly and ensuring the full content is visible.


Here's the code snippet that accomplishes this:


.e-dropdownbase .e-list-item {

  white-spacenormal;

  text-indent0;

  padding-left16px;

  line-height30px;

}

 


To further assist you, we have created a sample application demonstrating the implementation of the custom styles. You can find the sample by following this link:

Sample https://stackblitz.com/edit/react-ntjz1q-zqiqta?file=index.js,index.css,index.html


Loader.
Up arrow icon