I'm running SmartClient Version: SC_SNAPSHOT-2012-01-25_v8.2p/PowerEdition Deployment (built 2012-01-25)
I am having some issues related to PickTree fields in ListGrids. I can replicate these issues in the SmartClient 8.2 feature explorer Edit by Row example.
http://www.smartclient.com/docs/8.2/...html#editByRow
The issues I am having are related to tabbing off of the PickTreeItem component. When editByCell is true or when the PickTreeItem is the last editable field in the ListGrid, the focus in the ListGrid will be lost when tabbing away from the editor. The following code can be used to reproduce the problem.
Is there a work around for this issue or can it be fixed?
I am having some issues related to PickTree fields in ListGrids. I can replicate these issues in the SmartClient 8.2 feature explorer Edit by Row example.
http://www.smartclient.com/docs/8.2/...html#editByRow
The issues I am having are related to tabbing off of the PickTreeItem component. When editByCell is true or when the PickTreeItem is the last editable field in the ListGrid, the focus in the ListGrid will be lost when tabbing away from the editor. The following code can be used to reproduce the problem.
Code:
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true, cellHeight:22,
// use server-side dataSource so edits are retained across page transitions
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"member_g8"},
{name:"population", formatCellValue:"isc.Format.toUSString(value);"},
{name:"independence"},
//ISSUE>>>>
//When the pickTreeItem is the last editable field in the ListGrid, focus is lost when tabbing off of the pickTreeItem. This happens regardless of the editByCell issue mentioned below.
{name:"continent", editorProperties: {
editorType: "PickTreeItem",
displayField: "name",
valueField: "name",
canEdit: true,
valueTree: isc.Tree.create({
modelType: "children",
root: { name:"root", children: [
{ name: "America", children: [
{ name: "North America"},
{ name: "South America"}
]},
{ name: "Europe"},
{ name: "Asia"},
{ name: "Africa"},
{ name: "Australia/Oceania"}
]}
})
}}
],
autoFetchData: true,
canEdit: true,
//ISSUE>>>>
//editEvent "click" causes issues with pickTreeItems responding to mouse clicks. This is fixed by using our own rowClick implementation.
//editEvent: "click",
rowClick: function (record, recordNum, fieldNum, keyboardGenerated) {
if(this.getEditRow()==recordNum && this.getEditCol()==fieldNum && this.getEditField().name=="continent") {
return false;
}
return this.startEditing(recordNum,fieldNum);
},
//ISSUE>>>>
//editByCell will cause the list grid to lose focus when tabbing off of pickTreeItems
editByCell: true,
editOnFocus: true,
listEndEditAction: "next"
})
Comment