Hello,
I'm testing out the new Smartclient 10.0 and I see an issue where hidden columns aren't respecting setEditValue. I'm using Google Chrome.
Try this sample with 10.0:
http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#enterNewRows
You'll see that the required Country Name column is hidden. But, the editorEnter event will force a value to be set in the hidden column. So, when you enter a value in another cell and then press Enter to save, it should successfully save. But, expose Country Name and you'll see that there is a validation error the setEditValue call didn't actually set country Name. Now, try the same thing with smartclient 9.1 and setEditValue works correctly and the country name value is submitted.
I'm testing out the new Smartclient 10.0 and I see an issue where hidden columns aren't respecting setEditValue. I'm using Google Chrome.
Try this sample with 10.0:
http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#enterNewRows
Code:
isc.ListGrid.create({ ID: "countryList", width:500, height:224, alternateRecordStyles:true, cellHeight:22, // use server-side dataSource so edits are retained across page transitions dataSource: countryDS, editorEnter : function (record, value, rowNum, colNum) { this.setEditValue(rowNum,'countryName','Test'); }, // display a subset of fields from the datasource fields:[ {name:"countryName", showIf:"return false;"}, {name:"continent"}, {name:"member_g8"}, {name:"population"}, {name:"independence"} ], autoFetchData: true, canEdit: true, editEvent: "click", listEndEditAction: "next" }) isc.IButton.create({ top:250, title:"Edit New", click:"countryList.startEditingNew()" });
You'll see that the required Country Name column is hidden. But, the editorEnter event will force a value to be set in the hidden column. So, when you enter a value in another cell and then press Enter to save, it should successfully save. But, expose Country Name and you'll see that there is a validation error the setEditValue call didn't actually set country Name. Now, try the same thing with smartclient 9.1 and setEditValue works correctly and the country name value is submitted.
Comment