Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User xpuu's Avatar
    Join Date
    Mar 2009
    Posts
    20
    Vote Rating
    0
    xpuu is on a distinguished road

      0  

    Default Tree Drag and Drop when Node.text is more complex HTML element

    Tree Drag and Drop when Node.text is more complex HTML element


    Hi,

    I am using TreePanel to sort some more complex HTML elements, because I am lazy to make my own drag and drop implementation. It's working fine, but if TreeNode.text contains some HTML tags, drag and drop is not working at all (basically event is not propagating to span holding a whole text).

    Here is short example:

    - if you grab "child 1" it's working
    - if you grab [div] containing random text it's not working

    Code:
    Ext.onReady(function(){
    
    	var tree = new Ext.tree.TreePanel({
    	    root: {
    	    	text: 'root',
    	    	children: [
        			{ text: 'child 1<div>blah blah</div>', leaf: true },
        			{ text: 'child 2<div>blah <em>blah</em></div>', leaf: true }, 
        			{ text: 'child 3<div>blah blah</div>', leaf: true },
        			{ text: 'child 4<div>blah <em>blah</em></div>', leaf: true }
    			]
    		},
    		loader: new Ext.tree.TreeLoader({ preloadedChildren: true }),
    		enableDD: true,
    		rootVisible: false,
    		renderTo: Ext.getBody(),
    		title: 'Tree'
    	});
    
    });
    Is there some quick way to fix this? Fire some event? Somewhere?
    Thanks in advance.

    Martin

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    8
    Vote Rating
    0
    voytaz78 is on a distinguished road

      0  

    Default


    I have the same problem,
    have you any fix for this problem?

    Wojtek

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    81
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Haven't tested, but you could try:
    Code:
    Ext.override(Ext.tree.TreeNodeUI, {
        getDDHandles : function(){
            return [this.iconNode, this.textNode, this.elNode].concat(Ext.query('*', this.textNode);
        }
    });

Thread Participants: 2