Hi there,
we are using the latest build of smartclient 9.0 and we have a kind of an issue. It seems by using comboBoxItems with datasources in a listgrid there are some errors in the displayed field values.
To reproduce you can follow this link:
http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html?#customEditors
here you have to copy this source into the js-editor
After switching the tab to the html view you can now edit the last column (capitals). By selecting another capital from the picklist and click in another row (or press enter) the capital removes itself and the valueField /primary key appears.
This seems to be like a bug in smartclient. Is this a known bug or is there a kind of workaround?
Best Regards
we are using the latest build of smartclient 9.0 and we have a kind of an issue. It seems by using comboBoxItems with datasources in a listgrid there are some errors in the displayed field values.
To reproduce you can follow this link:
http://www.smartclient.com/docs/9.0/a/system/reference/SmartClient_Explorer.html?#customEditors
here you have to copy this source into the js-editor
Code:
isc.ListGrid.create({
ID: "countryList",
width:820, height:224, alternateRecordStyles:true,
cellHeight:42, wrapCells:true,
dataSource: countryDS,
fields:[
{name:"countryName", width:100},
{name:"government", width:175,
editorType:"textArea",
editorProperties:{height:40}
},
{name:"population", width:100, formatCellValue:"isc.NumberUtil.toUSString(value)",
editorType:"spinner"
},
{name:"independence", width:225,
editorProperties:{useTextField:false}
},
{
"name":"capital",
"editorType":"ComboBoxItem",
"valueField":"pk",
"editorProperties": {
"autoFetchData":true,
"fetchDelay":500,
"displayField":"capital",
"pickListWidth":"300",
"optionDataSource": countryDS,
"filterFields": [ "countryCode"],
"pickListFields": [{
"name":"pk",
"title":"Number",
"type":"text"
}, {
"name":"countryCode",
"title":"Code",
"type":"text"
}, {
"name":"capital",
"title":"Capital",
"type":"text",
"showIf": function() { return false }
}
],
"pickListProperties": {
"showFilterEditor":true
}
}
},
],
autoFetchData: true,
canEdit: true,
editEvent: "click"
})This seems to be like a bug in smartclient. Is this a known bug or is there a kind of workaround?
Best Regards