Hi,
I have a DropDownList that is opened in a grid cell.
I want that when I open the DropDownList, the width of each item will be of the largest item.
My CSS:
.k-list-container {
width: auto !important;
}
.k-list-container .k-list .k-item {
padding-left: 25px;
}
It doesn't work as expected. It takes the largest item length, but in some grids it adds more space so it's longer than it should be.
(it's not the padding-left: that's for the scroll).
Thanks
9 Answers, 1 is accepted
0
I have created a really simple page with your styles and two dropdowns, On that page things work flawlessly.
Can you built ontop my example -- http://dojo.telerik.com/@joneff/ItEgO -- so that the issue is always exhibited and we can debug it? Without actual working sample everything we say will be guesses at best.
Regards,
Ivan Zhekov
Telerik
Can you built ontop my example -- http://dojo.telerik.com/@joneff/ItEgO -- so that the issue is always exhibited and we can debug it? Without actual working sample everything we say will be guesses at best.
Regards,
Ivan Zhekov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ro
Top achievements
Rank 1
answered on 19 Nov 2015, 08:34 AM
0
That appears to be a side effect of using OData instead of, say jasonp.
I've updated my sample to reflect that: http://dojo.telerik.com/@joneff/ItEgO.
Regards,
Ivan Zhekov
Telerik
I've updated my sample to reflect that: http://dojo.telerik.com/@joneff/ItEgO.
Regards,
Ivan Zhekov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ro
Top achievements
Rank 1
answered on 22 Nov 2015, 09:38 AM
I think you're right.
How can I manage the ddl width in that case?
0
I've update the snippet once again. At least in my case it does work.
The new styles are:
Regards,
Ivan Zhekov
Telerik
The new styles are:
.k-popup.k-list-container > div{
overflow
:
none
!important
;
overflow-y:
scroll
!important
;
}
Regards,
Ivan Zhekov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
0
Hi Ro,
To achieve the expected you should set width: auto to the .k-list-container. For your I updated your example.
Regards,
Iliana Nikolova
Telerik
To achieve the expected you should set width: auto to the .k-list-container. For your I updated your example.
Regards,
Iliana Nikolova
Telerik
0
Ro
Top achievements
Rank 1
answered on 01 Dec 2015, 01:59 PM
That's what I did in the first place.
But it didn't work as expected :(
0
Hi Ro,
The width: auto should be used alongside the rule suggested by my colleague. I.e.:
taka e a look at the dojo example from my previous post and let me know if I am missing something.
Regards,
Iliana Nikolova
Telerik
The width: auto should be used alongside the rule suggested by my colleague. I.e.:
.k-popup.k-list-container > div{
overflow
:
none
!important
;
overflow-y:
scroll
!important
;
}
.k-list-container {
width
:
auto
!important
;
}
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!