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

Width of the control

2 Answers 380 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Radoslav
Top achievements
Rank 1
Radoslav asked on 10 Sep 2011, 12:59 PM
Hello,
is there a way to set a width to this UI control ? For long strings, it's not very good with the basic width.

I tried with CSS but it's quite buggy (and there's no width property in the documentation)

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 12 Sep 2011, 11:16 AM
Hello Radoslav,

 
You can set the width to the HTML element like this:

<input id="input" value="1" style="width:300px" />

You can also define the width of the combobox like this:
$("#input").closest(".t-widget").css("width", 300)

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Radoslav
Top achievements
Rank 1
answered on 03 Feb 2012, 09:13 PM
And how about the height of the control ? I can only specify the height the of the drop-down list, but i want to make the control a bit larger (because the default size is really small)
The thing with 
$("#input").closest(".k-widget").css("height", 300)
Does not work :) 
Tags
ComboBox
Asked by
Radoslav
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Radoslav
Top achievements
Rank 1
Share this question
or