Hi, I have problems using listGrid with select and comboBOX using REST datasource with dataValue, displayValue, sortValue, see below:
Regarding comboBox
With a select instead of comboBox neither of 3 above examples are working with my REST datasource.
I can neither get sortValue to work, displayField are shown as order in DB.
also tried sortField:"MWCompanyID" with same negative result.
I am using SmartClient_v82p_2012-05-08_Pro
/Johan
Regarding comboBox
Code:
// Working fine - with same field in valueField and and displayField! {name:"Username1", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyName", displayField:"MWCompanyName"}, {name:"Username2", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyAlias", displayField:"MWCompanyAlias"}, // Not working - when having different fields on valueField and displayField // The listGrid is not loading att all and the app is hanging, can see in my REST // logs that no REST request for the listGrid is arriving. {name:"Username", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", valueField:"MWCompanyName", displayField:"MWCompanyAlias"},
I can neither get sortValue to work, displayField are shown as order in DB.
Code:
{name:"Username1", width:100, editorType:"comboBox", optionDataSource:"smartpark__MWCompany", sortField:0, valueField:"MWCompanyID", displayField:"MWCompanyID"},
I am using SmartClient_v82p_2012-05-08_Pro
/Johan
Comment