Hi,
When I use a combobox which values are filled with a valuemap, I can select any item clicking anywhere in the row, but when I'm using a RestDataSource to populate the select, I can olny select an item clicking on the text. This is pretty annoying when you have short items like years where the user has to click in a corner to select a value.
Is there something special to do when using a datasource to populate the select?
Here is an example code:
When I use a combobox which values are filled with a valuemap, I can select any item clicking anywhere in the row, but when I'm using a RestDataSource to populate the select, I can olny select an item clicking on the text. This is pretty annoying when you have short items like years where the user has to click in a corner to select a value.
Is there something special to do when using a datasource to populate the select?
Here is an example code:
Code:
isc.RestDataSource.create({
ID: "dsExercicios",
dataURL: "/Servicos/Exercicios/ServicoConsultaExercicios.ashx",
dataFormat: "json",
fields: [
{ name: "ANO", type: "string" }
]
});
isc.DynamicForm.create({
ID: 'formFiltroExercicio',
numCols: 2,
autoDraw: true,
fields: [
{ name: "exercicio", title: "Exercício", editorType: "select",
valueField: "ANO", displayField: "ANO",
width: 100, optionDataSource: "dsExercicios"
}
, { name: "exercicio2", title: "Exercício Value Map", editorType: "select",
valueField: "ANO", displayField: "ANO",
width: 100, valueMap: { 2010: "2010", 2011: "2011" }
}
]
});
Comment