Just want to verify a behaviour - if the listgrid says to not validate on change, normally validations are not run except when the required flag is turned on for a field. Isn't this viewed as inconsistent? Checking for requirement of a value is technically a validation. OR is the required flag meant to overwrite validateOnChange property of the listgrid for that field?
Code:
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true, cellHeight:22,validateOnChange: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",required:true},
{name:"continent"},
{name:"member_g8"},
{name:"population", formatCellValue:"isc.Format.toUSString(value);"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click"
})
Comment