<?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: Copying an already existing row into the add new modal ..</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/copying-an-already-existing-row-into-the-add-new-modal</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/copying-an-already-existing-row-into-the-add-new-modal/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ram2010 on Copying an already existing row into the add new modal ..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/copying-an-already-existing-row-into-the-add-new-modal#p20892</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/copying-an-already-existing-row-into-the-add-new-modal#p20892</guid>
        	        	<description><![CDATA[<p>I seem to be getting somewhere with this.. however I am facing one problem.</p>
<p>The properties I set in</p>
<p><input type='button' class='sfcodeselect' name='sfselectit510' value='Select Code' data-codeid='sfcode510' /></p>
<div class='sfcode' id='sfcode510'>jQuery(&#34;#gridName&#34;).jqGrid(&#39;editGridRow&#39;, &#34;new&#34;, properties);</div>
<p>&#160;does not have any effect!!</p>
</p>
<p>Is there a bug that when you specifiy the properties when calling like above it doesnt work?</p>
]]></description>
        	        	<pubDate>Thu, 18 Nov 2010 16:18:27 +0200</pubDate>
        </item>
        <item>
        	<title>ram2010 on Copying an already existing row into the add new modal ..</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/copying-an-already-existing-row-into-the-add-new-modal#p20730</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/copying-an-already-existing-row-into-the-add-new-modal#p20730</guid>
        	        	<description><![CDATA[<p>Hi</p>
</p>
<p>Basically is there a way that when I select a row, I can have a copy button and when that copy button is clicked, a new add modal popup will display with the defaults already selected(values picked up from the already selected row into thew new add modal popup). This will save a tremendous amount of time adding in new records when previous record are nearly identical!</p>
</p>
<p>I tried attaching an event onto a button so that when pressed it could do something like this(im using the struts2-jquery plugin):</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4194' value='Select Code' data-codeid='sfcode4194' /></p>
<div class='sfcode' id='sfcode4194'>
<p>&#160;&#160;&#160;function copyRow(){<br />&#160;&#160;&#160;&#160;var id = jQuery(&#34;#gridName&#34;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;var properties = &#39;{height:500,width:400,reloadAfterSubmit:true,closeAfterAdd:true,afterSubmit:afterAdd,top:1}&#39;;</p>
<p>&#160;&#160;&#160;&#160;if(id &#62; 0){<br />&#160;&#160;&#160;&#160;&#160;jQuery(&#34;#gridName&#34;).jqGrid(&#39;editGridRow&#39;, &#34;new&#34;, properties);<br />&#160;&#160;&#160;&#160;&#160;jQuery(&#34;#gridName&#34;).jqGrid(&#39;GridToForm&#39;, id, &#39;#FrmGrid_gridName&#39;);<br />&#160;&#160;&#160;&#160;}else{<br />&#160;&#160;&#160;&#160;&#160;alert(&#39;Please select a row.&#39;);<br />&#160;&#160;&#160;&#160;}</p>
<p>&#160;&#160;&#160;}</p>
</div>
<p>What happened above was that the text fields got populated, but the dropdown lists failed. I think it could be because the dropdown lists need to execute the call to retrieve the values for the dropdown but obviously this way I did it, didnt work.</p>
</p>
<p>If anyone can help me I would appreicate it greatly. If this functionality doesnt exists, it will be a great one to have in the jqgrid functionality!</p>
</p>
<p>thanks!</p></p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 17:36:12 +0200</pubDate>
        </item>
</channel>
</rss>