I'm trying to figure out how to allowEmptyValue in a ListGrid selectItem.
I tried to edit the continent field on this example to allow an emptyValue but that doesn't work. So, how do you do it?
http://www.smartclient.com/#editByCell
I tried to edit the continent field on this example to allow an emptyValue but that doesn't work. So, how do you do it?
http://www.smartclient.com/#editByCell
Code:
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
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"continent", allowEmptyValue:true},
{name:"member_g8"},
{name:"population", formatCellValue:"isc.NumberUtil.toUSString(value)"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
Comment