Jump to content

josauro@casasoft.net.br

uniGUI Subscriber
  • Posts

    13
  • Joined

  • Last visited

Posts posted by josauro@casasoft.net.br

  1. Hi I put this code in a UnitreeView, de drag an drop work fine, but, how could I know in delphi where de parent node they are droped ? I need to update de BD with new targed node parent. Look the video attached.

     

    function beforeInit(sender, config)
    {
        config.viewConfig = {
            plugins: {
                ptype: 'treeviewdragdrop',
                ddGroup: 'tree2panel',
                dragText : 'Movendo....',
                enableDrag : true,
                enableDrop : true,
                appendOnly: false
                 },
            listeners: {
                beforedrop: function(node, data, overModel, dropPos, opts) {
                    
                },
                drop: function(node, data, overModel, dropPos, opts) {
           ajaxRequest(sender, 'dropped', ['data='+data.records[0].data,
           'id='+data.records[0].data.id,
           'opts='+opts,
           'text='+data.records[0].data.text]);
                                  
             
                }

            }
        };
    }

  2. Hi I put this code in a UnitreeView, de drag an drop work fine, but, how could I know in delphi where de parent node they are droped ? I need to update de BD with new targed node parent.

     

    function beforeInit(sender, config)
    {
        config.viewConfig = {
            plugins: {
                ptype: 'treeviewdragdrop',
                ddGroup: 'tree2panel',
                dragText : 'Movendo....',
                enableDrag : true,
                enableDrop : true,
                appendOnly: false
                 },
            listeners: {
                beforedrop: function(node, data, overModel, dropPos, opts) {
                    
                },
                drop: function(node, data, overModel, dropPos, opts) {
           ajaxRequest(sender, 'dropped', ['data='+data.records[0].data,
           'id='+data.records[0].data.id,
           'opts='+opts,
           'text='+data.records[0].data.text]);
                                  
             
                }

            }
        };
    }

  3. On 4/25/2023 at 1:17 AM, Sherzod said:

    Sorry, not yet.

    Hi I put this code in a UnitreeView, de drag an drop work fine, but, how could I know in delphi where de parent node they are droped ? I need to update de BD with new targed node parent.

     

    function beforeInit(sender, config)
    {
        config.viewConfig = {
            plugins: {
                ptype: 'treeviewdragdrop',
                ddGroup: 'tree2panel',
                dragText : 'Movendo....',
                enableDrag : true,
                enableDrop : true,
                appendOnly: false
                 },
            listeners: {
                beforedrop: function(node, data, overModel, dropPos, opts) {
                    
                },
                drop: function(node, data, overModel, dropPos, opts) {
           ajaxRequest(sender, 'dropped', ['data='+data.records[0].data,
           'id='+data.records[0].data.id,
           'opts='+opts,
           'text='+data.records[0].data.text]);
                                  
             
                }

            }
        };
    }
     

  4. On 3/26/2020 at 4:03 AM, Kamyar said:

    I need to drag Treenodes between one treeview and write enddrag event in pascal to do somting? how can i use enddrag event?
    we dont have any dragemode properties like VCL.

    I need this too, some solution ?

     

  5. Minha aplicação aparece apenas Loading...  e no arquivo de log aparece a mensagem


     


    PainelCasaVistoria.dll: 00001004: 08:55:19 []:Error deleting folder: "C:\inetpub\wwwroot\UNG\cache\painelcasavistoria_dll\ijaSVG7xMT1025ED6F3\" [OS Error:3]


     


    Qual o problema, já configurei o IIS conforme manual, esqueci de algo ?


     


    Grato


×
×
  • Create New...