<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ExtJS 4 Tree/Grid dragText</title>
	<atom:link href="http://www.jamiesutherland.com/2011/11/29/extjs-4-tree-dragtext/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamiesutherland.com/2011/11/29/extjs-4-tree-dragtext/</link>
	<description>Random Nonsense (Mainly programming nonsense though)</description>
	<lastBuildDate>Fri, 18 May 2012 21:52:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: jsutherland</title>
		<link>http://www.jamiesutherland.com/2011/11/29/extjs-4-tree-dragtext/#comment-299</link>
		<dc:creator>jsutherland</dc:creator>
		<pubDate>Sat, 25 Feb 2012 23:02:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamiesutherland.com/?p=140#comment-299</guid>
		<description>Thanks for the update there mate! I&#039;ve added it to the main post so it doesn&#039;t get missed.</description>
		<content:encoded><![CDATA[<p>Thanks for the update there mate! I&#8217;ve added it to the main post so it doesn&#8217;t get missed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JBA</title>
		<link>http://www.jamiesutherland.com/2011/11/29/extjs-4-tree-dragtext/#comment-298</link>
		<dc:creator>JBA</dc:creator>
		<pubDate>Sat, 25 Feb 2012 20:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jamiesutherland.com/?p=140#comment-298</guid>
		<description>Hi,
I found your posting while doing a google search on how to customize the dragText when dragging from an ExtJS 4 TreeView.  Your headline says &quot;Tree dragText&quot;, but your solution actually allows you to set the dragText for a grid, not a tree.  In the body of the post its obvious that you are referring to the tree as the drop target, not the drag source, but on first reading I was confused and it took me a few minutes to figure out why this wasn&#039;t allowing me to set the dragText when dragging from a TreeView.  

The good news is once I made sense of what was going on, I was quickly able to figure out how to accomplish the same thing by similarly overriding the onViewRender method of the TreeViewDragDrop .  So I thought I&#039;d make that clarification and share this additional solution with you and your readers in case someone else finds their way to your site looking to accomplish this. 

Ext.override(Ext.tree.plugin.TreeViewDragDrop, {
	    onViewRender : function(view) {
        var me = this;

        if (me.enableDrag) {
            me.dragZone = Ext.create(&#039;Ext.tree.ViewDragZone&#039;, {
                view: view,
                ddGroup: me.dragGroup &#124;&#124; me.ddGroup,
                dragText: me.dragText,
                dragField: me.dragField,
                repairHighlightColor: me.nodeHighlightColor,
                repairHighlight: me.nodeHighlightOnRepair
            });
        }

        if (me.enableDrop) {
            me.dropZone = Ext.create(&#039;Ext.tree.ViewDropZone&#039;, {
                view: view,
                ddGroup: me.dropGroup &#124;&#124; me.ddGroup,
                allowContainerDrops: me.allowContainerDrops,
                appendOnly: me.appendOnly,
                allowParentInserts: me.allowParentInserts,
                expandDelay: me.expandDelay,
                dropHighlightColor: me.nodeHighlightColor,
                dropHighlight: me.nodeHighlightOnDrop
            });
        }
    }
});

Thanks for posting this and pointing me in the right direction.   I would never have figured this out without your example.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I found your posting while doing a google search on how to customize the dragText when dragging from an ExtJS 4 TreeView.  Your headline says &#8220;Tree dragText&#8221;, but your solution actually allows you to set the dragText for a grid, not a tree.  In the body of the post its obvious that you are referring to the tree as the drop target, not the drag source, but on first reading I was confused and it took me a few minutes to figure out why this wasn&#8217;t allowing me to set the dragText when dragging from a TreeView.  </p>
<p>The good news is once I made sense of what was going on, I was quickly able to figure out how to accomplish the same thing by similarly overriding the onViewRender method of the TreeViewDragDrop .  So I thought I&#8217;d make that clarification and share this additional solution with you and your readers in case someone else finds their way to your site looking to accomplish this. </p>
<p>Ext.override(Ext.tree.plugin.TreeViewDragDrop, {<br />
	    onViewRender : function(view) {<br />
        var me = this;</p>
<p>        if (me.enableDrag) {<br />
            me.dragZone = Ext.create(&#8216;Ext.tree.ViewDragZone&#8217;, {<br />
                view: view,<br />
                ddGroup: me.dragGroup || me.ddGroup,<br />
                dragText: me.dragText,<br />
                dragField: me.dragField,<br />
                repairHighlightColor: me.nodeHighlightColor,<br />
                repairHighlight: me.nodeHighlightOnRepair<br />
            });<br />
        }</p>
<p>        if (me.enableDrop) {<br />
            me.dropZone = Ext.create(&#8216;Ext.tree.ViewDropZone&#8217;, {<br />
                view: view,<br />
                ddGroup: me.dropGroup || me.ddGroup,<br />
                allowContainerDrops: me.allowContainerDrops,<br />
                appendOnly: me.appendOnly,<br />
                allowParentInserts: me.allowParentInserts,<br />
                expandDelay: me.expandDelay,<br />
                dropHighlightColor: me.nodeHighlightColor,<br />
                dropHighlight: me.nodeHighlightOnDrop<br />
            });<br />
        }<br />
    }<br />
});</p>
<p>Thanks for posting this and pointing me in the right direction.   I would never have figured this out without your example.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

