Jump to content
uniGUI Discussion Forums
mhmda

DBGrid Drag&Drop - advanced tutorial

Recommended Posts

Dear Mohammad,

are there any examples for the 

UniDBTreeGrid, i just upgraded my UniGui but I am not sure how to rightly connect fieldnames to Tree or Column fields.

Greetings

Share this post


Link to post
Share on other sites

assalamu alaykum,

 

A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http://5.189.151.122:8045/ext-4.2.5.1763/ext-all.js:18

 

I get this error on your demo link.

How to: drang & drop, left to right, and same record(row) quickly rigth to left.

just let you know.

best regards

Share this post


Link to post
Share on other sites

Dear friends!

 

The example is wonderful, but I would really need these functionality in the DBTreeGrid. It seems, some properties and events are missing there, so I can implement a proper drag & drop (within the grid, fe. exchanging rows) solution there.

Any suggestions?

Help is really welcome.

Gerhard

Share this post


Link to post
Share on other sites

Hi,

 

Can you try this approach for now ?!

 

UniDBTreeGrid -> ....

 

beforeInit:

function beforeInit(sender, config)
{
    config.viewConfig = {
        plugins: {
            ptype: 'treeviewdragdrop',
            appendOnly: true
        },
        listeners: {
            beforedrop: function(node, data, overModel, dropPos, opts) {
                console.log(arguments);
            },
            drop: function(node, data, overModel, dropPos, opts) {
                console.log(arguments);
            }

        }
    };
}

Best regards,

Share this post


Link to post
Share on other sites

×