This is a migrated thread and some comments may be shown as answers.

kendo Grid Drag and Drop with Google Chrome browser

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj Yennam
Top achievements
Rank 1
Raj Yennam asked on 26 May 2014, 11:48 AM
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






1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 28 May 2014, 08:13 AM
Hi Raj,

The provided information is not sufficient enough in order to determine where exactly the problem comes from.
Generally speaking your code looks OK. Did you test in other browsers apart from Google Chrome? Does the problem persists only in Google Chrome? Is it possible for you to set up a small example (you can use trykendoui.telerik.com) which I can run and examine locally?

Please provide such sample and I will check it right away. Thank you in advance for the cooperation.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Raj Yennam
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or