
5 Answers, 1 is accepted
Hello Shimmoril,
In this case you could use the list field of the DropDownList and set its width to "auto".
ddl.list.width(
"auto"
)
Please refer to the following how-to article - How to automatically adjust the width of a DropDownList
Regards,
Plamen Lazarov
Telerik

Hello ,
I am not quite sure if I understand correctly what the exact outcome should be, however if the goal is to set "width: auto" to the "parent" you could use the CSS rule below:<style>
.k-dropdown {
width
:
auto
;
}
</style>
Kendo DropDownList supports the scrollbar scenario mentioned in your previous response (see an example). since we are not aware of your current implementation, we cannot say why it is not appearing in the application. Could you please modify the provided demo or send a simple dojo where the issue could be observed - this way we would be able to check what exactly is going wrong and provide concrete recommendations?
Regards,
Plamen Lazarov
Telerik

I've modified the CSS as suggested, and it looks like it may be specific to the iPad/mobile(?) display. I'm attaching two images from my iPad, one of our site, where the text is cut off, and one of the demo, where the display is even worse.
(Also, FYI, your scrollbar example never actually shows a scrollbar, it just keeps getting longer and longer, based on the text).
apologies, it seems the link from my previous response is wrong - here is the demo with . Basically, if the text is too large and is not set, the scrollbar should appear automatically.
As I mentioned, we are not aware of your current implementation and cannot tell why the scrollbar does not appear. Please modify the provided example and demonstrate your exact setup - we will check it right away and do our best to help. Thank you in advance for your cooperation and time.
Regards,Plamen Lazarov
Telerik