Jan 31, 2013, 2:43 PM
ComboBox width doesn't match column width in GridPanel
How do I make the width of the ComboBox be the same as the width of the column?
Here is what's happening:
Here is my code:
But this is still not what I want.
Here is what's happening:
Here is my code:
columnModel.Add(Html.X().ComponentColumn()
.Text("State").DataIndex("STATE")
.Editor(true).OverOnly(true).PinEvents("expand").UnpinEvents("collapse")
.Width(50)
.Component(Html.X().ComboBox()
.Width(50)
.Editable(false)
.AllowBlank(false)
.ForceSelection(true)
.Items(states => {
...
})
)));
A partial solution is adding .MatchFieldWidth(false), which changes the list size, but not the field size (i.e. I still don't see the drop-down arrow for selection):But this is still not what I want.
Last edited by KBorkiewicz; Jan 31, 2013 at 3:02 PM.