<?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: jqGrid &#38; TableDND throws error</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error</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/jqgrid-tablednd-throws-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>wichard on jqGrid &#38; TableDND throws error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p24026</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p24026</guid>
        	        	<description><![CDATA[<p>I have the same error, anyone found a solution yet?</p>
<p>With firebug I can see that sometimes the getPosition function is handled correct and sometimes line 209 of jquery.tablednd_0_5.js encounters a null value for e.offsetParent.</p>
</p>
<p>The mousecursor changes but the rows cannot be dragged, applying the tableDnD to a static table works fine, any pointers are welcome.</p>
]]></description>
        	        	<pubDate>Thu, 21 Jul 2011 17:48:58 +0300</pubDate>
        </item>
        <item>
        	<title>mcyoung on jqGrid &#38; TableDND throws error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p22695</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p22695</guid>
        	        	<description><![CDATA[<p>I just ran into this today. Have you come up with a work-around?</p>
</p>
<p>Thank you.</p>
]]></description>
        	        	<pubDate>Wed, 06 Apr 2011 23:41:58 +0300</pubDate>
        </item>
        <item>
        	<title>ukluk on jqGrid &#38; TableDND throws error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p22210</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-throws-error#p22210</guid>
        	        	<description><![CDATA[</p>
<p>The error:</p>
<p><strong>in the function getPosition,&#160;(e.offsetParent)</strong></p>
</p>
<p>I want to create a table and have the ability to Drag and Drop rows to reorder items.</p>
<p>In my scenario I load the data manually into the grid using&#160;&#39;addRowData&#39;</p>
<p>The problem I found is that the&#160;getPosition function of the TableDnD extension has null parameters and that occurs because while initializing&#160;and setting the complete callback&#160;gridComplete the table is still&#160;empty.</p>
<p>here is my sample:</p>
<p>//Data Array</p>
<p>var mydata = [</p>
<p>{ id: "1", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00" },</p>
<p>{ id: "2", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00" },</p>
<p>{ id: "3", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00" }</p>
<p>];</p>
</p>
<p>//Init</p>
<p>$(document).ready(function () {</p>
<p>jQuery("#list1").tableDnD()</p>
<p>jQuery("#list1").jqGrid({</p>
<p>datatype: "local",</p>
<p>colNames: [&#39;Inv No&#39;, &#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;, &#39;Tax&#39;, &#39;Total&#39;, &#39;Notes&#39;],</p>
<p>colModel: [</p>
<p>{ name: &#39;id&#39;, index: &#39;id&#39;, width: 60, sorttype: "int" },</p>
<p>{ name: &#39;invdate&#39;, index: &#39;invdate&#39;, width: 90, sorttype: "date" },</p>
<p>{ name: &#39;name&#39;, index: &#39;name&#39;, width: 100 },</p>
<p>{ name: &#39;amount&#39;, index: &#39;amount&#39;, width: 80, align: "right", sorttype: "float" },</p>
<p>{ name: &#39;tax&#39;, index: &#39;tax&#39;, width: 80, align: "right", sorttype: "float" },</p>
<p>{ name: &#39;total&#39;, index: &#39;total&#39;, width: 80, align: "right", sorttype: "float" },</p>
<p>{ name: &#39;note&#39;, index: &#39;note&#39;, width: 150, sortable: false }</p>
<p>],</p>
<p>caption: &#39;Drag and Drop&#39;,</p>
<p>gridComplete: function () {</p>
<p>jQuery("#list1").<strong>tableDnDUpdate</strong>();</p>
<p>}</p>
<p>});</p>
<p>for (var i = 0; i &#60;= mydata.length; i++)</p>
<p>jQuery("#list1").jqGrid(&#39;addRowData&#39;, i + 1, mydata[i]);</p>
<p>});</p>
]]></description>
        	        	<pubDate>Fri, 25 Feb 2011 23:21:21 +0200</pubDate>
        </item>
</channel>
</rss>