Hey guys,
I’m currently working on a ListGrid including a ListGridField with editorType “SelectItem” which has a DataSource. Further the valueField and displayField of this ListGridField aren’t the same.
When initially loading the ListGrid and setting it’s data everything is fine and the displayField value is visible. But when selecting another value and submitting via Enter, the value of the valueField will be visible.
This issue is not reproduceable with a local dataSource and only appears when data has to be fetched.
Example for reproducing the issue:
This issue is reproduceable with all current browsers and with your latest nighly build (SmartClient_v101p_2016-01-10_Pro).
Best regards
I’m currently working on a ListGrid including a ListGridField with editorType “SelectItem” which has a DataSource. Further the valueField and displayField of this ListGridField aren’t the same.
When initially loading the ListGrid and setting it’s data everything is fine and the displayField value is visible. But when selecting another value and submitting via Enter, the value of the valueField will be visible.
This issue is not reproduceable with a local dataSource and only appears when data has to be fetched.
Example for reproducing the issue:
Code:
function clwTransformRequest(dataSourceRequest) { var operationType = { operationType : dataSourceRequest.operationType }; var params = { sortBy : dataSourceRequest.sortBy, start : dataSourceRequest.startRow, end : dataSourceRequest.endRow }; console.log(params); return isc.addProperties({}, operationType, dataSourceRequest.data, params); } function clwTransformResponse(dataSourceResponse, dataSourceRequest, jsonData) { dataSourceResponse.totalRows = jsonData.totalRows; dataSourceResponse.endRow = jsonData.endRow; dataSourceResponse.startRow = jsonData.startRow } isc.ListGrid.create({ "ID" : "personListGrid", "width" : 250, "height" : 150, "canEdit" : true, "fields" : [{ "name" : "personField", "title" : "Person", "width" : "100%", "canEdit" : true, "editorType" : "SelectItem", "valueField" : "number", "displayField" : "personDisplayField", optionDataSource : isc.DataSource.create({ "fields" : [{ "name" : "personDisplayField", "primaryKey" : true } ], "dataFormat" : "json", "dataURL" : "http://devset.de/datasource.php", useHttpProxy : false, "transformRequest" : clwTransformRequest, "transformResponse" : clwTransformResponse, "recordXPath" : "\/resultData" }), "editorProperties" : { "displayField" : "personDisplayField", "textMatchStyle" : "substring", "loadingDisplayValue" : null } } ], "members" : [], "data" : [{ "personField" : "name6", } ] })
Best regards
Comment