Hello,
I'm using SmartGWT version 3.0p from 07 Apr. 2012
I have issues with combo boxes where the list items are displayed off-screen (see screenshot). It looks that it happens only when you have more than 50 items.
This is a code to reproduce the problem:
This is the code of the datasource:
I'm using SmartGWT version 3.0p from 07 Apr. 2012
I have issues with combo boxes where the list items are displayed off-screen (see screenshot). It looks that it happens only when you have more than 50 items.
This is a code to reproduce the problem:
Code:
DynamicForm form = new DynamicForm();
SectionItem section = new SectionItem("dados");
section.setDefaultValue("Dados gerais");
ComboBoxItem combo = new ComboBoxItem("combobox", "Seleção");
combo.setValueField("id");
combo.setDisplayField("nome");
combo.setOptionDataSource(DataSource.get("tipoOperacao"));
section.setSectionExpanded(false);
section.setItemIds("combobox");
form.setItems(section, combo);
form.draw();
Code:
<DataSource ID="tipoOperacao" tableName="S_TIPO_OPERACAO" serverConstructor="xx.xxx.xxxx.ds.XXXDataSource">
<fields>
<field name="id" nativeName="ID_TIPOOPERACAO" type="sequence" hidden="true" primaryKey="true" />
<field name="nome" nativeName="NM_TIPOOPERACAO" type="text" title="Nome" length="80" >
<validators>
<validator type="serverCustom">
<serverObject lookupStyle="new" className="xx.xxx.xxxx.validator.ValidatorXXXX" />
<errorMessage>$mensagem</errorMessage>
</validator>
<validator type="required" errorMessage="Campo obrigatório."/>
</validators>
<width>400</width>
</field>
</fields>
</DataSource>
Comment