Hi,
there is an issue with ListGrids and set options canRemoveRecords:true, autoSaveEdits:false
If you try to create a new record without saving it, you'll not be able to remove this record by clicking on the remove icon.
SmartClient Version: v9.0p_2013-10-09/Pro
Browser: Google Chrome Version 30.0.1599.69 m
Example
there is an issue with ListGrids and set options canRemoveRecords:true, autoSaveEdits:false
If you try to create a new record without saving it, you'll not be able to remove this record by clicking on the remove icon.
SmartClient Version: v9.0p_2013-10-09/Pro
Browser: Google Chrome Version 30.0.1599.69 m
Example
Code:
isc.ListGrid.create({
ID: "countryList",
canRemoveRecords:true,autoSaveEdits:false,
width:500, 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:"countryName"},
{name:"continent"},
{name:"member_g8"},
{name:"population",
formatCellValue:"isc.NumberUtil.toUSString(parseInt(value))"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
listEndEditAction: "next"
})
isc.IButton.create({
top:250,
title:"Edit New",
click:"countryList.startEditingNew()"
});
Comment