Hi I have noticed that if the dropdown for an enum cannot wordwrap the item then the styling is broken, see the following the screenshot:
As you can see IN_PROGRESS is so long that it exceeds the column width and creates empty space above.
To me it appears as though an attempt to try to wordwrap the IN_PROGRESS but IN_PROGRESS has no applicable breaks in it.
Thanks,
Daniel
Hi Daniel,
The empty space is caused by an invisible symbol at the beginning of each dropdown item.
The purpose of this symbol is to expand empty list items, which have no text. This enables their selection and ensures other features will work correctly (e.g. virtualization).
There are two ways to avoid the problem in your case:
Here is the required CSS code for both suggestions. There is a third option to avoid the empty space, but it's more complex and unnecessary - use a FilterCellTemplate with a wider dropdown.
/* disable text wrapping in all dropdowns */
.k-animation-container .k-list-item-text {
white-space: nowrap;
}
/* OR */
/* remove the invisible content, which expands vertically empty list items */
.k-animation-container .k-list-item-text::before {
content: none;
}
Regards,
Dimo
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.