<?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: drag and drop row!</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/drag-and-drop-row</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/drag-and-drop-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>pfkdesign on drag and drop row!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/drag-and-drop-row#p22378</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/drag-and-drop-row#p22378</guid>
        	        	<description><![CDATA[<p>hi, i have problem to create the d&#38;d row in jqgrid, here is my code,</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5598' value='Select Code' data-codeid='sfcode5598' /></p>
<div class='sfcode' id='sfcode5598'>$(&#34;#menu_mnu_tablegrid&#34;).jqGrid(&#39;sortableRows&#39;, {&#160; &#160; &#160; &#160; <br />update: function(event, ui) { <br />var getRowData = &#160; &#160;&#160; &#160; &#160; &#160; <br />var menu_mnu = &#39;/my_CMS/menu_sort.php&#39;; &#160; &#160; &#160; &#160; <br />var neworder = $(&#34;#menu_mnu_tablegrid&#34;).jqGrid(&#34;getRowData&#34;);&#160; &#160; &#160; &#160; <br />$.post( menu_mnu, neworder, function(message,status) {&#160; &#160; &#160; &#160; &#160; &#160; <br />if(status != &#39;success&#39;) {&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br /> alert(message);&#160; &#160; &#160; &#160; &#160; &#160; &#160;<br />&#160;}&#160; &#160; &#160; &#160; &#160; <br />})&#160; &#160; &#160; &#160; <br />}&#160; &#160; &#160; <br />})</div>
<p>and  here is mysql:</p>
<div id="sfcode1518" class="sfcode">$menu_mnu = $_POST[&#39;menu_mnu&#39;];<br />for ($i = 0; $i &#60; count($menu_mnu); <br />$i++) {mysql_query("UPDATE `menu_mnu` SET `order_mnu`=" . $i . " WHERE `id`=&#39;" . $menu_mnu[$i] . "&#39;") <br />or die(mysql_error());}</div>
<p>the problem is, i tested with firebug and the js return undefined in parameter.  any idea? thank you in advance.</p>
<p>can anyone help me?</p>
]]></description>
        	        	<pubDate>Fri, 11 Mar 2011 23:53:33 +0200</pubDate>
        </item>
</channel>
</rss>