Jump to content

DBGrid Drag&Drop - advanced tutorial


mhmda

Recommended Posts

  • 2 months later...
  • 3 weeks later...

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
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,

Link to comment
Share on other sites

  • 3 years later...
On 2/28/2017 at 10:43 AM, mhmda said:

Hello,

 

Here is a demo project showing how to drag a row from dbgrid to control (panel) or to other dbgrid.

 

Online demo here: http://5.189.151.122:8045/

 

Project here: http://3msoft.net/mhmd/uni_DBGridDragDrop.rar

 

http://3msoft.net/mhmd/drg.png

Hi dear
I cant find uni_DBGridDragDrop.rar 
may attach again ?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...