Hello
We have discovered a bug when editing ListGrid with showGridSummary and field having selectOnFocus.
We have been able to reproduce this in a showcase sample, with a few tweaks to the JavaScript.
The behaviour is as follows:
When inline-editing a float input in a grid row, the input text is re-selected after a delay on each keystroke.
So, our users who are slower typists see their previous input disappear, being replaced by the last keystroke character.
This only happens when the ListGrid has showGridSummary: true and the input field has selectOnFocus: true.
NB the fault does NOT occur if the input in the float box is made the same, ie do not type the same character repeatedly.
I would say that the selectOnFocus behaviour is being re-applied when the total in the grid summary is re-calculated.
The correct behaviour would be to apply selectOnFocus only when the editor initially gets focus. Which is the behaviour when the ListGrid has showGridSummary: false, actually.
To reproduce the fault, you can make a couple of changes to the sample: https://smartclient.com/smartclient-14.1/showcase/?id=editByRow.
See the lines marked with the comment: // ADDED.
isc.FloatItem.addProperties({selectOnFocus: true}); // ADDED. We have this as a default
isc.ListGrid.create({
ID: "countryList",
width:550, height:224,
// 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/24/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"continent"},
{name:"member_g8"},
{name:"population"},
{name:"gdp"}, // ADDED. To have a float field in the grid. Use this field to see the fault.
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
showGridSummary: true // ADDED. This is also needed to see the fault
})
If there’s anything else we can help with, please ask.
Many Thanks