In the Cell Change event of the Editable List Grid object, I am creating an error with the setFieldError command. But the error for the row that occurred, without changing anything in the same cell is entered and exit the error disappears.
Note : The same situation happens when any cell is clicked on the line with the error.
If you paste the code below into the example in this link, you will see the error.
https://www.smartclient.com/smartclient/showcase/?id=editByCell
Note : The same situation happens when any cell is clicked on the line with the error.
If you paste the code below into the example in this link, you will see the error.
https://www.smartclient.com/smartclient/showcase/?id=editByCell
Code:
isc.ListGrid.create({ ID: "countryList", width:550, height:224, alternateRecordStyles:true, // 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:"continent"}, {name:"member_g8"}, {name:"population"}, {name:"independence"} ], autoFetchData: true, canEdit: true, editEvent: "click", editByCell: true, cellChanged : function (record, newValue, oldValue, rowNum, colNum, grid) { if ((newValue % 50) > 0) countryList.setFieldError(rowNum, "population", "Population has 50, 100, 150 etc..."); }, });
Comment