Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    France
    Posts
    7
    Vote Rating
    0
    Maxence@stereograph is on a distinguished road

      0  

    Default treeviewDragDrop can not disable drag drop between 2 panels.

    treeviewDragDrop can not disable drag drop between 2 panels.


    Ext version tested:
    • Ext 4.1
    Browser versions tested against:
    • Chrome 23 (Windows)
    Description:
    • Ext.plugin.treeviewdragdrop - ddGroup does not work.
    Steps to reproduce the problem:
    • I am using the treeviewdragdrop plugin and in the sencha's doc, I found that if you want to disable drag and drop between different panels. You just need to set a different ddGroup to each panel.
    • To reproduce juste take the exemple on sencha Ext Js treegrid drag and drop and change their ddGroup name.

    The result that was expected:
    • If i drop an item from panel 1 to another object in panel 2, the drop shoud not be done.

    The result that occurs instead:
    • But if i drop an item from panel 1 to another object in panel 2, the drop is done

    Test Case:

    Code:
    var tree = Ext.create('Ext.tree.Panel', {        id: 'tree',        store: store,        width: 250,        height: 300,        viewConfig: {            plugins: {                ptype: 'treeviewdragdrop',                ddGroup: 'test1',                appendOnly: true            }        },        renderTo: document.body    });
    var tree2 = Ext.create('Ext.tree.Panel', {        id: 'tree2',        width: 250,        height: 300,        store: store2,        viewConfig: {            plugins: {                ptype: 'treeviewdragdrop',                ddGroup: "Test2",                appendOnly: true            }        },        renderTo: document.body    });

    With this exemple, the drag and drop between the 2 exemple should be disabled but it is not.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,801
    Vote Rating
    604
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I can't reproduce this, I modified the two-trees example slightly.

    Code:
    Ext.require(['*']);
    
    Ext.onReady(function(){
        var store = Ext.create('Ext.data.TreeStore', {
            proxy: {
                type: 'ajax',
                url: 'get-nodes.php'
            },
            root: {
                text: 'Ext JS',
                id: 'src',
                expanded: true
            },
            folderSort: true,
            sorters: [{
                property: 'text',
                direction: 'ASC'
            }]
        });
    
        var tree = Ext.create('Ext.tree.Panel', {
            id: 'tree',
            store: store,
            width: 250,
            height: 300,
            viewConfig: {
                plugins: {
                    ptype: 'treeviewdragdrop',
                    appendOnly: true,
                    ddGroup: 'a'
                }
            },
            renderTo: document.body
        });
    
        var store2 = Ext.create('Ext.data.TreeStore', {
            proxy: {
                type: 'ajax',
                url: 'get-nodes.php'
            },
            root: {
                text: 'Custom Ext JS',
                id: 'src',
                expanded: true,
                children: []
            },
            folderSort: true,
            sorters: [{
                property: 'text',
                direction: 'ASC'
            }]
        });
    
        var tree2 = Ext.create('Ext.tree.Panel', {
            id: 'tree2',
            width: 250,
            height: 300,
            store: store2,
            viewConfig: {
                plugins: {
                    ptype: 'treeviewdragdrop',
                    appendOnly: true,
                    ddGroup: 'b'
                }
            },
            renderTo: document.body
        });
    });
    I can't drop nodes from the left to the right.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    France
    Posts
    7
    Vote Rating
    0
    Maxence@stereograph is on a distinguished road

      0  

    Default


    Sorry if i reply late.

    The problem was from my own code, it's ok with sencha.

    Thank you for your answer.

    You can close the topic.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi