<?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: jquery ui draggable with jqgrid - can't drag outside of tbody</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody</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/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jquery ui draggable with jqgrid - can't drag outside of tbody</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody#p12022</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody#p12022</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>First I think that this is problem of draggable and not of jqGrid.</p>
<p>To work this IMHO you will need to specify the following options in the draggable: helper:"clone" and appendTo. You can look in grid.jqueryui.js of the method gridDnD in order to understand how is this organized.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 00:25:03 +0200</pubDate>
        </item>
        <item>
        	<title>Martyn on jquery ui draggable with jqgrid - can't drag outside of tbody</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody#p11895</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jquery-ui-draggable-with-jqgrid-cant-drag-outside-of-tbody#p11895</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>In an early version of jqgrid, I used jquery ui draggable to allow me to drag a &#60;tr&#62; and drop on a &#60;textarea&#62; that is outside and in a different &#60;div&#62; than the jqgrid table. I used a custum helper as the drag helper, so that if the user dragged more than one row (selected by the multi select check boxes) the drag image showed custom text similar to moving multiple emails in hotmail, e.g. &#8220;moving 3 emails&#8221; instead of showing a clone of the &#60;tr&#62;.</p>
</p>
<p>Having upgraded to Ver 3.6, this no longer works. I can drag the &#60;tr&#62; and the custom helper works, but it is contained&#160; within the &#60;tbody&#62; of the jqgrid table, causing horizontal scrolling&#160; to occur when I drag to the left hand side, and the drag helper is not visible outside of the tbody.</p>
</p>
<p>Is there anyway to allow a &#60;tr&#62; to be dragged outside of the jqgrid table using jquery ui draggable? Same code below:</p>
</p>
<blockquote>
<p>$(&#8221;#staffList&#8221;).jqGrid({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;ajax.php?p=staff&#38;fn=getJsonBatch&#38;nd=&#39;+new Date().getTime(),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#8220;json&#8221;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 400,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;staffid&#39;,&#39;name&#39;,&#39;surname&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[ {name:&#39;staffid&#39;,index:&#39;staffid&#39;, width:55}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;forename&#39;,index:&#39;forename&#39;, width:90}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;surname&#39;,index:&#39;surname&#39;, width:100} ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager2&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:&#60;?=$rowsPerPage?&#62;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;staffid&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scroll: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; shrinkToFit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; scrollrows: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#8220;desc&#8221;, </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridComplete : function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#staffList tbody tr&#8221;).draggable({ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cursor: &#39;move&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cursorAt: {top: -12, left: -20},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; containment: $(&#39;#mainbody&#39;),&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; zIndex: 9999 ,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; helper: function(event){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var vSelectedStaff = $(&#8221;#staffList&#8221;).getGridParam(&#39;selarrrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(vSelectedStaff.length &#62; 1){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $(&#39;&#60;div class=&#8221;ui-widget-header&#8221;&#62;&#39; + vSelectedStaff.length + &#39; staff members&#60;/div&#62;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $(&#39;&#60;div class=&#8221;ui-widget-header&#8221;&#62;&#39; + $(this).attr(&#39;id&#39;) + &#39;&#60;/div&#62;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
</blockquote>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 06:17:17 +0200</pubDate>
        </item>
</channel>
</rss>