<?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: Changing a row value using drag and drop</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/changing-a-row-value-using-drag-and-drop</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/changing-a-row-value-using-drag-and-drop/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Changing a row value using drag and drop</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-a-row-value-using-drag-and-drop#p13535</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-a-row-value-using-drag-and-drop#p13535</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#drag_and_drop_rows_between_grids" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ween_grids</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 03 Jan 2010 19:13:47 +0200</pubDate>
        </item>
        <item>
        	<title>finedesignz on Changing a row value using drag and drop</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/changing-a-row-value-using-drag-and-drop#p13495</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/changing-a-row-value-using-drag-and-drop#p13495</guid>
        	        	<description><![CDATA[<p>How do I change a row value when using the drag and drop between grids?</p>
</p>
<p>I have 3 grids, representing 3 "groups" of people.&#160; Each row (person) has fname, lname, and fsg_id, retrieved from a mysql database.&#160; When I drop the selected row from one grid to another grid, I would like the fsg_id of the row to update with the groupid of the target grid, and then reload all grids.&#160;</p>
<p>I&#39;m still a little new to jqgrid...&#160; Can you post an example of how I can accomplish this? <img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
<p>Here&#39;s what I have so far:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5612' value='Select Code' data-codeid='sfcode5612' /></p>
<div class='sfcode' id='sfcode5612'>
<p>var lastsel;<br />jQuery(document).ready(function(){<br /> $("#fsg1").jqGrid({<br /> url:&#39;fsg/fsgget.php?q=1&#38;groupid=&#39;+fsg1id,<br /> colModel :[<br /> {name:&#39;lname&#39;, index:&#39;lname&#39;, label:&#39;Last&#39;, width:80},<br /> {name:&#39;fname&#39;, index:&#39;fname&#39;, label:&#39;First&#39;, width:80},<br /> {name:&#39;fsg_id&#39;, index:&#39;fsg_id&#39;, label:&#39;Group&#39;, editable:true, width:40},<br /> ],<br /> pager: $(&#39;#pfsg1&#39;),<br /> caption: &#39;Group 1&#39;,</p>
<p>onSelectRow: function(id){ if(id &#38;&#38; id!==lastsel){ $(&#39;#fsg1&#39;).jqGrid(&#39;saveRow&#39;,lastsel); $(&#39;#fsg1&#39;).jqGrid(&#39;editRow&#39;,id,true); lastsel=id; } },</p>
<p>}).navGrid(&#39;#pfsg1&#39;,<br /> {add:false,edit:true,del:false,search:false}, //options<br /> {width:300,reloadAfterSubmit:true,url:&#39;fsg/fsgedit.php&#39;}, // edit options<br /> {width:300,}, // add options<br /> {width:300}, // del options<br /> {width:300} // search options<br /> );</p>
<p>$("#fsg2").jqGrid({<br />&#160;&#160;&#160; url:&#39;fsg/fsgget.php?q=2&#38;groupid=2&#39;,<br />&#160;&#160;&#160; userdata: {fsgid:2},<br />&#160;&#160;&#160; colModel :[<br />&#160;&#160;&#160;&#160; {name:&#39;lname&#39;, index:&#39;lname&#39;, label:&#39;Last&#39;, width:80},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;fname&#39;, index:&#39;fname&#39;, label:&#39;First&#39;, width:80},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;fsg_id&#39;, index:&#39;fsg_id&#39;, label:&#39;Group&#39;, editable:true, width:50},<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: $(&#39;#pfsg2&#39;),<br />&#160;&#160;&#160; caption: &#39;Group 2&#39;,<br />&#160;&#160;&#160; onSelectRow: function(id){ if(id &#38;&#38; id!==lastsel){ $(&#39;#fsg2&#39;).saveRow(lastsel); $(&#39;#fsg2&#39;).editRow(id,true); lastsel=id; } },</p>
<p>}).navGrid(&#39;#pfsg2&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {add:false,edit:true,del:false,search:false}, //options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {width:300,reloadAfterSubmit:true,url:&#39;fsg/fsgedit.php&#39;}, // edit options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {width:300,}, // add options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {width:300}, // del options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {width:300} // search options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
<p>jQuery("#fsg1").jqGrid(&#39;gridDnD&#39;,{connectWith:&#39;#fsg2&#39;});</p>
<p>jQuery("#fsg2").jqGrid(&#39;gridDnD&#39;,{connectWith:&#39;#fsg1&#39;});</p>
</p>
</div>
<p>Thanks in advance!</p></p>
]]></description>
        	        	<pubDate>Fri, 01 Jan 2010 08:09:18 +0200</pubDate>
        </item>
</channel>
</rss>