Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

In Chrome, ListGrid selects edit text after cell becomes valid from invalid

$
0
0
Issue: In Chrome, ListGrid selects edit text after cell becomes valid from invalid so the first character will be replaced by subsequent input characters.
If I type 123, then only 23 will be kept.

Environment:
SmartClient: v9.1
Chrome: Version 36.0.1985.125 m
Windows 8.1 64bit

This only happens to Chrome. Firefox and IE work well.

To reproduce:
Step 1: Go to http://smartclient.com/#editByCell
Step 2: Replace editCell.js with the following:
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
validateOnChange:true,
rowEndEditAction : "next",
listEndEditAction : "next",
enterKeyEditAction : "nextCell",
arrowKeyAction : "select",
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"population", required:true},
{name:"continent"},
{name:"member_g8"},

{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
Step 3: Click "Try it" to go to view tab
Step 4: Double click any population cell to enter edit
Step 5: Delete existing population then error icon will appear
Step 6: input 1, then error icon will disappear but 1 is selected. 1 will be replaced if continuing typing 2 and 3.

Can you please look into this.

Viewing all articles
Browse latest Browse all 4756

Trending Articles