Jump to content


Photo

DBGrid Drag&Drop - advanced tutorial


  • Please log in to reply
9 replies to this topic

#1 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 615 posts
  • LocationKufur Kassem, Palestine

Posted 28 February 2017 - 07:13 AM

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/mh...ridDragDrop.rar

 

drg.png


  • 2

#2 _Mehmet_

_Mehmet_

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 473 posts
  • LocationAntalya / Turkey

Posted 28 February 2017 - 07:41 AM

thanks Mohammad


  • 0

#3 aans

aans

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 February 2017 - 08:28 AM

Good...Thanks


  • 0

#4 Stefano Monterisi

Stefano Monterisi

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 103 posts

Posted 28 February 2017 - 09:03 AM

Perfect!
Thanks


  • 0

#5 Schuiab

Schuiab

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 315 posts

Posted 28 February 2017 - 09:40 AM

Thanks brother Mohammad, great help, thank you


  • 0

#6 majori

majori

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 120 posts

Posted 28 February 2017 - 10:02 AM

thank dear mohammad

Perfect!


  • 0

#7 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 05 May 2017 - 09:22 PM

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

  • 0

#8 Freeman35

Freeman35

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 142 posts

Posted 26 May 2017 - 01:20 PM

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...3/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


  • 0

#9 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 17 July 2017 - 10:30 AM

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


  • 0

#10 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3038 posts

Posted 17 July 2017 - 11:46 AM

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,


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users