SmartClient Version: v8.3p_2013-11-10/Pro Deployment (built 2013-11-10)
Hi,
I'm getting a problem with focusing in a cell on a new row in a ListGrid when running through Chrome, but not through IE11 and Firefox.
Below is the code for my grid :
The grid is populated with 150 rows of data such as ID="FRED1", TITLE="Mr" and NAME="Fred1". There is no validation on any of the cells.
The last row in the grid is double clicked to edit the TITLE cell and then tab to the NAME cell. Tab off that row to create a new row and focus is placed in the TITLE cell on the new row correctly.
Then tab into the NAME cell again and tab off the end of the new row. This time the focus is placed into the TITLE cell on the next new row, but only briefly, and then it is taken away somewhere else on the page. That is the problem, the focus being pulled away.
I've tried this in IE11 and Firefox and in both these browsers focus remains in the first editable cell on a new row consistently, but this isn't the case in Chrome.
A colleague has tried this test case in smartclient v10 and gets the same behaviour, focus is pulled away from the grid cell in Chrome.
Thanks,
David.
Hi,
I'm getting a problem with focusing in a cell on a new row in a ListGrid when running through Chrome, but not through IE11 and Firefox.
Below is the code for my grid :
Code:
var ds = isc.RestDataSource.create({
dataProtocol: "postParams",
dataFormat: 'json',
useStrictJSON: true,
dataURL: "gridlostfocus.ashx",
fields: [
{ name: "ID", type: "text", title: "User ID", width: "100", primaryKey: true, canEdit: false },
{ name: "TITLE", type: "text", title: "Title", width: "50", canEdit: true },
{ name: "NAME", type: "text", title: "Name", width: "200", canEdit: true }
]
});
var grid = isc.ListGrid.create({
ID: "grid",
dataSource: ds,
width: 900,
height: 900,
autoFetchData: true,
canEdit: true,
listEndEditAction: "next"
});
var vlayout = isc.VLayout.create({
});
vlayout.addMember(grid);The last row in the grid is double clicked to edit the TITLE cell and then tab to the NAME cell. Tab off that row to create a new row and focus is placed in the TITLE cell on the new row correctly.
Then tab into the NAME cell again and tab off the end of the new row. This time the focus is placed into the TITLE cell on the next new row, but only briefly, and then it is taken away somewhere else on the page. That is the problem, the focus being pulled away.
I've tried this in IE11 and Firefox and in both these browsers focus remains in the first editable cell on a new row consistently, but this isn't the case in Chrome.
A colleague has tried this test case in smartclient v10 and gets the same behaviour, focus is pulled away from the grid cell in Chrome.
Thanks,
David.