This is a migrated thread and some comments may be shown as answers.

Different size for ComboBox and the items that it is showing

3 Answers 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Imar Spaanjaars
Top achievements
Rank 1
Imar Spaanjaars asked on 23 Oct 2013, 08:59 PM
Hi there,

I am using a kendoComboBox to load data from the server. I would like to limit the size of the initial control to, say 200px, but display the items that are returned from the server in a wider list, say 400px wide below the control.

How can this be done? I tried various things such as setting explicit widths on various CSS elements. I also used a template with a <div> that has a defined width, for each item but no matter what I try, the size of the items is constrained by the size of the original ComboBox control.

Are there any examples that show how to accomplish this?

Thanks in advance,

Imar

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 24 Oct 2013, 12:01 PM
Hello Imar,

The dropdown that you see is actually list nested inside a div, that has a width set. In order to change the width, you need to set it on the div element. Please check the following example, showing a possible implementation:

http://jsbin.com/uQUpuQU/3/edit
 
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Imar Spaanjaars
Top achievements
Rank 1
answered on 24 Oct 2013, 12:37 PM
Hi Kiril,

Thank you, that was exactly what I needed.

Cheers,

Imar
0
Kiril Nikolov
Telerik team
answered on 25 Oct 2013, 08:33 AM
Hi Imar,

I am glad that the proposed solution helped.

If you need any further questions, please do not hesitate to contact us.
 
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Imar Spaanjaars
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Imar Spaanjaars
Top achievements
Rank 1
Share this question
or