1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    magdielsh is on a distinguished road

      0  

    Exclamation Drag and Drop TreePanel to Grid

    Drag and Drop TreePanel to Grid


    I need a TreePanel agreed with a Grid with Drag and Drop, so that when you drag a node from the tree that it is a field in a table in the database to the grid is made a query and display the data in the grid, please if anyone has any idea how to do this answer me, thank you and sorry for my English.

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2010
    Posts
    70
    Vote Rating
    0
    plmdoctor is on a distinguished road

      0  

    Default


    In your TreePanel include

    Code:
            viewConfig: {
            	plugins: {
            		ddGroup:	'selDD',
            		ptype: 		'treeviewdragdrop',
            		enableDrop:	false
            	}
            }
    In you GridPanel include:

    Code:
    		viewConfig: {
    			plugins: {
    				ptype: 	'gridviewdragdrop',
    				ddGroup: 	'selDD',
    				enableDrag:	false
    			}
    		}

Thread Participants: 1