I use to have this code for ver 10.2 to delete row in grid without do async call.
========================
var selected = igtbl_getGridById("UltraWebGrid1"); var row = selected.getActiveRow();
var index = row.getIndex(); var rows = row.OwnerCollection;
rows.remove(index, false);
That was working!
============================
Now I am using ver 14.2 and try to rewrite this to
======================
var grid = $find('<%= UltraWebGrid1.ClientID %>');
var gridRows = grid.get_rows();
var selectedRows = grid.get_behaviors().get_selection().get_selectedRows();
var rows = new Array();
var i1 = 0;
for (var i = selectedRows.get_length() - 1; i >= 0; i--) {
rows[i1] = selectedRows.getItem(i); i1++; }
grid.get_behaviors().get_editingCore().get_behaviors().get_rowDeleting().deleteRows(rows);
=======================================
I have error on last line: Async request failed.
I don't want to post to the server, I want remove row from grid.
Please help. Thanks
Hi,
Thank you for using our forum!
In the webDataGrid when remove a row/rows a postback is made.
You can enable batch updating and then when you remove a row and a postback want be made.
You can look at this forum posts for more information:
http://ko.infragistics.com/community/forums/t/73288.aspx
http://ko.infragistics.com/community/forums/t/73137.aspx
Please let me know if I can provide any further assistance.
I'm just following up to see if you need any further assistance with this issue. If so please let me know.