Don W.
Don W.

Reputation: 560

Set width to dojox/form/CheckedMultiSelect

I was trying to set the style of a dojox form CheckedMultiSelect control. First I tried to use the .set method. The physical width has changed, but the control is still automatically sized to the max. length of dropdown items.Second, I tried the way from this post -How to set width to dojox/form/CheckedMultiSelect?. And it didn't do anything.

var groupCheckedMultiSelect = new CheckedMultiSelect ({
      id: "groupChkMultiSelect",
      dropDown: true,
      multiple: true,
      class: 'narrow',
      label: "Group"
  }, 'GroupDiv');

groupCheckedMultiSelect.set('style', {width: '100px', height: '30px', fontSize: '14px'});
groupCheckedMultiSelect.startup();
.narrow .dojoxCheckedMultiSelectWrapper {
    width: 1000px;
}

Upvotes: 0

Views: 423

Answers (1)

tik27
tik27

Reputation: 2698

Try Setting

.dojoxCheckedMultiSelectButton{
    width:400px
}

Fiddle:http://jsfiddle.net/theinnkeeper/4L3sksmt/1/

Upvotes: 1

Related Questions