Custom placeholder for multiple items in MultiSelect DropDown

Hello.

I would like the MultiSelect Dropdown component to have the following behavior: when selecting only one item, display the item's text in the field, truncating it if it exceeds the field's width. When selecting more than one item, display only a custom message, such as '(MULTIPLE ITEMS)', inside the field.

Is it possible to implement this behavior?


3 Replies 1 reply marked as answer

UD UdhayaKumar Duraisamy Syncfusion Team January 20, 2025 04:49 AM UTC

In MultiSelect , the selected items are displayed as "full value" or "value + N more," or only "N selected" based on the component's width and the selected items text length. This feature ensures that selected values are presented in a clear and concise manner, preventing overflow outside the component. Customizing this behavior could lead to issues such as displaying selected values improperly or not at all, especially in scenarios involving dynamic changes in component size or placement.


For a clearer understanding of this behavior, we've prepared a sample demonstrating three MultiSelect components with varying widths. You'll notice that each component displays selected values differently based on its width.

Regarding your request for displaying a custom message like "(MULTIPLE ITEMS)" when multiple items are selected, we’ve already considered "Introducing the 'ShowNumberOfCheckedItems' API in MultiSelect with checkbox mode for Displaying Total Selected " as an uncertain feature, but there are no immediate plans to implement it. During the planning phase for each release cycle, we review all open feature requests and prioritize them based on factors such as feature ranking, customer demand, and overall popularity.


You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link:

To help prioritize this feature, please cast your vote. If you have additional specifications or suggestions, feel free to add them as a comment in the portal.


Marked as answer

GC Guilherme Cremasco replied to UdhayaKumar Duraisamy January 20, 2025 11:18 AM UTC

Okay, I understand. Thank you for the feedback.



KG Kalpana Ganesan Syncfusion Team January 21, 2025 05:23 AM UTC

Hi Guilherme,


You are welcome. Please get back to us for further assistance.


Regards,

Kalpana.


Loader.
Up arrow icon