I am using SmartClient8.0.
When I remove the records selected in a ListGrid, the records are actually deleted from database, but the rows are still in the ListGrid. What can I do to remove the records as well as from ListGrid.
The code I'm using:
When I remove the records selected in a ListGrid, the records are actually deleted from database, but the rows are still in the ListGrid. What can I do to remove the records as well as from ListGrid.
The code I'm using:
Code:
isc.RestDataSource.create({
ID: "application",
fields: [
{name:"id", hidden:true, primaryKey:true},
{name:"name", title:"NAME"},
],
dataFormat: "json",
removeDataURL:"application_delete.htm"
});
isc.Button.create({
ID: "removeButton",
title: "delete",
click: function()
{
application.removeData(appList.getSelection());
}
});
isc.ListGrid.create({
ID:"appList",
dataSource: application,
width:"100%",
canEdit:false,
autoFetchData: true
});
Comment