Setting the focus in a filter textbox does not work properly when there are frozen columns and the grid is not big enough to display all columns.
The last filterField gets the focus, instead of the one that was clicked.
This only happens the first time when clicking in a filterfield.
Try to code below in this examle: http://www.smartclient.com/index.jsp#sort
The last filterField gets the focus, instead of the one that was clicked.
This only happens the first time when clicking in a filterfield.
Try to code below in this examle: http://www.smartclient.com/index.jsp#sort
Code:
isc.ListGrid.create({ ID: "countryList", width:200, height:224, alternateRecordStyles:true, data: countryData, showFilterEditor: true, fields:[ {name:"countryCode", frozen:true, title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"}, {name:"countryName", title:"Country", frozen:true}, {name:"population", title:"Population", formatCellValue:"isc.Format.toUSString(value)"}, {name:"area", title:"Area (kmē)", formatCellValue:"isc.Format.toUSString(value)"} ], // initial sort on Population, high-to-low sortFieldNum: 2, sortDirection: "descending" })
Comment