Hi,
Tested in 11.1p 2017-07-28.
Steps to reproduce:
1. create TreeGrid with one of the fields ("multiField") set with multiple = true.
2. call treeGrid.startEditingNew()
3. navigate to multiField and select on of the values
4. press Enter to add the new record
multiField is then saved to server as a single value not as a an array with length = 1
If you select more then one value or navigate out of the editor before saving record - it works.
Test case:
http://www.smartclient.com/smartclie...ultipleColumns
then
call employeeTree.startEditingNew();
click on editor in first column
press tab to go to second editor
press m to select male
call employeeTree.getEditedRecord(1); => {"Gender": "male"} but should be {"Gender": [ "male"] }
Best regards,
Janusz
Tested in 11.1p 2017-07-28.
Steps to reproduce:
1. create TreeGrid with one of the fields ("multiField") set with multiple = true.
2. call treeGrid.startEditingNew()
3. navigate to multiField and select on of the values
4. press Enter to add the new record
multiField is then saved to server as a single value not as a an array with length = 1
If you select more then one value or navigate out of the editor before saving record - it works.
Test case:
http://www.smartclient.com/smartclie...ultipleColumns
Code:
isc.TreeGrid.create({
ID: "employeeTree",
width: 500,
height: 400,
dataSource: "employees",
autoFetchData: true,
nodeIcon:"icons/16/person.png",
folderIcon:"icons/16/person.png",
showOpenIcons:false,
showDropIcons:false,
closedIconSuffix:"",
fields: [
{name: "Name"},
{name: "Gender", multiple: true},
{name: "Salary", formatCellValue: "isc.NumberUtil.format(value*1000, '\u00A4,0.00')"}
]
});
call employeeTree.startEditingNew();
click on editor in first column
press tab to go to second editor
press m to select male
call employeeTree.getEditedRecord(1); => {"Gender": "male"} but should be {"Gender": [ "male"] }
Best regards,
Janusz
Comment