<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Trying to enable drag &#38; drop between 3 or more tables</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>zoopside on Trying to enable drag &#38; drop between 3 or more tables</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20494</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20494</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You&#39;re most welcome. Thank you for a great product.</p>
<p>Also, I noticed that the second issue (issues with dropping of rows) basically resolves itself when there is some distance between the tables. On my initial test, the table borders were touching, and I think this led to the drop zone confusion. From debugging, I could tell that the error occurred when I was actually dropping a row from #1 to #2, but the drop zone fired table #1 or #3.</p>
<p>When I integrated the tables into a more realistic design (e.g. with space between the table borders), I have had no further issues.</p>
<p>So, thanks again.</p>
</p>
<p>&#160;&#160; &#160; -Joe</p>
]]></description>
        	        	<pubDate>Tue, 26 Oct 2010 18:02:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Trying to enable drag &#38; drop between 3 or more tables</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20436</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20436</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First of all thanks.</p>
<p>The first description is a bug and your fix seems to resolve it.</p>
<p>I do not have problems with your seconf description.</p>
<p>Also be a sure you have set the id key correct.</p>
<p>Thanks again the first fix in in GitHub</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 23 Oct 2010 17:28:24 +0300</pubDate>
        </item>
        <item>
        	<title>zoopside on Trying to enable drag &#38; drop between 3 or more tables</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20274</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/trying-to-enable-drag-drop-between-3-or-more-tables#p20274</guid>
        	        	<description><![CDATA[<p>Hello all,</p>
<p>I hesitate to call this a "bug", as it is probably a new requirement, but I&#39;m hoping for a bit of direction, if possible. Code can be found here : <a href="http://drop.io/az98jvr" target="_blank">http://drop.io/az98jvr</a>.</p>
<p>I am trying to create 3 to N tables between which I can drag and drop individual rows. In the demo file above, I&#39;m creating 3 grids, and connecting them with&#160;</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit854' value='Select Code' data-codeid='sfcode854' /></p>
<div class='sfcode' id='sfcode854'>
<p>jQuery(&#34;#grid3&#34;).jqGrid(&#39;gridDnD&#39;,{connectWith:&#39;#grid1,#grid2&#39;});</p>
<p>jQuery(&#34;#grid2&#34;).jqGrid(&#39;gridDnD&#39;,{connectWith:&#39;#grid1,#grid3&#39;});</p>
<p>jQuery(&#34;#grid1&#34;).jqGrid(&#39;gridDnD&#39;,{connectWith:&#39;#grid2,#grid3&#39;});&#160;</p>
</div>
<p>I should first note that connecting 1 table to the other 2 works without issue, but when connecting the other 2 the issue(s) arise. I stepped through grid.jqueryui.js, and found that line 397 was attempting to pull data from the incorrect source table. Here&#39;s the original line with my comment, and &#39;fix&#39; :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit601' value='Select Code' data-codeid='sfcode601' /></p>
<div class='sfcode' id='sfcode601'>
<p>//var getdata = $(&#39;#&#39;+$t.id).jqGrid(&#39;getRowData&#39;,accept);</p>
<p>// the issue with the above is that the $t variable is not always correct, so the getdata object is attempting to be retrieved from the wrong table.</p>
<p>// hopefully, we can use only the information from the ui variable to get this data.</p>
<p>var getdata = ui.draggable.parent().parent().jqGrid(&#39;getRowData&#39;,accept);</p>
</div>
<p>I changed the getdata to try to use the ui variable so that we aren&#39;t dependent on the $t which is set to &#39;this&#39; above. I&#39;m not sure why the &#39;this&#39; variable would be incorrect, but this will resolve the first situation which is the dropping of an empty row.</p>
<p>The second issue, which is persistent is the inability to drop rows. Dragging from grid1 to grid2 or grid3 always works, but dragging from grid2 to grid3 often doesn&#39;t work. Or the droppable area is a bit more fragile for some reason. I noticed that this is probably in the "accept" block of drop and have changed line 386 as follows :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7677' value='Select Code' data-codeid='sfcode7677' /></p>
<div class='sfcode' id='sfcode7677'>
<p>//var tid = $(d).closest(&#34;table.ui-jqgrid-btable&#34;);</p>
<p>var tid = d.parent().parent();	// source table&#160;</p>
</p>
</div>
<p>Instead of grabbing the &#39;closest&#39;, I&#39;m trying to use the d variable to get the value of the source table to check &#39;accept&#39; on.</p>
</p>
<p>The end result is improved, but not quite ready. Oddly, it works very well in IE8, but not as well in Chrome &#38; Firefox, which is a first for me.</p>
</p>
<p>So, if you&#39;ve read this far and can point me in the right direction, I&#39;d really appreciate it. Thanks beforehand for any help.</p>
]]></description>
        	        	<pubDate>Tue, 12 Oct 2010 21:51:28 +0300</pubDate>
        </item>
</channel>
</rss>