Hi,
I am using the following code for drag and drop multiple rows between two grids:
grd_portnumber.table.kendoDropTarget({
group: "portnumber",
drop: function (e) {
var portnumberDraggedRows = e.draggable.hint.find("tr");
portnumberDraggedRows.each(function (e) {
var thisUid = $(this).attr("data-uid");
var itemToMove = selectedPortnumberDataSource.getByUid(thisUid);
if (itemToMove != undefined) {
selectedPortnumberDataSource.remove(itemToMove);
if (itemToMove.IsAvailable == undefined || itemToMove.IsAvailable == true)
portnumberDataSource.add({ RecorderIndex: itemToMove.RecorderIndex, PortNumberID: itemToMove.PortNumberID});
}
}
});
selectedPortnumberPrevIndex = null;
}
});
This code is taking too much time for drag and drop functionality with Google Chrome browser.
Please suggest a best way to do it.
Thanks,
Raj Yennam
I am using the following code for drag and drop multiple rows between two grids:
grd_portnumber.table.kendoDropTarget({
group: "portnumber",
drop: function (e) {
var portnumberDraggedRows = e.draggable.hint.find("tr");
portnumberDraggedRows.each(function (e) {
var thisUid = $(this).attr("data-uid");
var itemToMove = selectedPortnumberDataSource.getByUid(thisUid);
if (itemToMove != undefined) {
selectedPortnumberDataSource.remove(itemToMove);
if (itemToMove.IsAvailable == undefined || itemToMove.IsAvailable == true)
portnumberDataSource.add({ RecorderIndex: itemToMove.RecorderIndex, PortNumberID: itemToMove.PortNumberID});
}
}
});
selectedPortnumberPrevIndex = null;
}
});
This code is taking too much time for drag and drop functionality with Google Chrome browser.
Please suggest a best way to do it.
Thanks,
Raj Yennam