3.2.0

Delete field in Grid remains old data. How to solve?

Excuse me!
My project using GRID had a problem that I can't solve it right now. Anyone could help?
My form has either Add new and delete Product Information
My JS is:
page.soInfo.bt_RemoveRow.onControlClicked=function(){
if(confirm('Are you sure to delete?'))
{
var currentRow = solTable.getCurrentRow();
solTable.deleteRow(currentRow);
solTable.refresh();
if(solTable.getRowCount() > 1)
{
page.soInfo.bt_RemoveRow.setControlDisabled(false);
}
else
{
page.soInfo.bt_RemoveRow.setControlDisabled(true);
}
stt--;
getTotalCurrentAmount();
}
}
By this I want to delete or add a new record by just select 1 field and click "Delete Row" or "Add new". Submit data by click button "Accept" will send data in Grid into database.
But whenever I click "Delete Row", then click "Add New", the new row will show the datas I've deleted before. How can I solve this problem?
Micheal
April 14,
The method deleteRow() deletes row from the grid control but does not modify your data source. You should add some code which deletes the record from the datasource, either directly or via onRowDeleted event -

http://www.activewidgets.com/aw.ui.grid/row-add-delete-events.html
Alex (ActiveWidgets)
April 14,

This topic is archived.

See also:


Back to support forum