Drag from JQGrid to jsTree v.0.9.9a

I want to drag a row from the created jqGrid and fire the drop event on node in jsTree (v.0.9.9a).

In any case, this is done - using only vs .9.9a only for jsTree.

Sincerely.

+3
source share
3 answers

After much discussion, I decided to switch to jsTree version 1.

In jqGrid I added an event

afterInsertRow: function (rowid, rowdata, rowelem) {
            $("#" + rowid).addClass('jstree-draggable');
        },

Then I added the dnd plugin for jstree, which allows you to drag and drop all external elements with class "jstree-draggable" into the tree with the event "drag_finish": function (data) {}in jsTree.

jsTree 1 - , 1, , , . , 1.

0

. , jQuery UI draggable droppable widgets, . , ?

, , ...

0

only

$("#treeOptions").jstree({
   plugins: ["themes", "json_data", "dnd", "ui", "types"],
   ...
   dnd: { drag_target: ".jqgrow" }
   ...
});
0
source

Source: https://habr.com/ru/post/1755769/


All Articles