Mar 01, 2011, 1:30 PM
delete records in dataview
Hi,
I want to delete the records in dataview with button click.
I saw this thread.
http://forums.ext.net/showthread.php...te-item%28s%29
I didn't use datasource for DataView's store.
I used AddRecord method for filling the store. How can I do this?
Please help...
Thanks.
I want to delete the records in dataview with button click.
I saw this thread.
http://forums.ext.net/showthread.php...te-item%28s%29
deleteSelected = function(view) {
var records = view.getSelectedRecords();
for (var i = 0, len = records.length; i < len; i++) {
view.store.remove(records[i]);
}
view.clearSelections();
}
deleteselected script doesn't work for me?I didn't use datasource for DataView's store.
I used AddRecord method for filling the store. How can I do this?
Please help...
Thanks.
Last edited by geoffrey.mcgill; Mar 01, 2011 at 7:00 PM.
Reason: please use [CODE] tags