簡體   English   中英

在DragNDrop上的jqGrid樹擴展節點

[英]jqGrid Tree expand node on DragNDrop over

我有2個網格( *#list1, #list2* )並想從*#list2*拖動到*#list1* 將鼠標懸停在節點上時,節點將像這樣展開。 我仍然需要在Cursor上拖動元素,並且當我將焦點放在第3行時,它應該將setSelection放在

“ 00000010 Testkonto LVL”

但是它的作用是在setSelection上

“ Gruppe 2”

參見圖像

當我將#list1保留為可拖動元素並再次將其聚焦時。 行是可選的。

我的問題是,當使用addChildNode添加Elements時,如何重設#list1over函數可以專注於展開的葉子的位置。

在jquery-ui.js文件中,我只是將refreshPositions更改為true

$.widget("ui.draggable", $.ui.mouse, {
    version: "1.10.3",
    widgetEventPrefix: "drag",
    options: {
        addClasses: true,
        appendTo: "parent",
        axis: false,
        connectToSortable: false,
        containment: false,
        cursor: "auto",
        cursorAt: false,
        grid: false,
        handle: false,
        helper: "original",
        iframeFix: false,
        opacity: false,
        refreshPositions: true,
        revert: false,
        revertDuration: 500,
        scope: "default",
        scroll: true,
        scrollSensitivity: 20,
        scrollSpeed: 20,
        snap: false,
        snapMode: "both",
        snapTolerance: 20,
        stack: false,
        zIndex: false,

        // callbacks
        drag: null,
        start: null,
        stop: null
    },

有沒有一種方法可以在jquery-ui.js文件而不是外部javascript文件中做到這一點? 我不想更改“模板”中的某些內容

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM