<?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: clear values in jqgrid postData parameter</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/clear-values-in-jqgrid-postdata-parameter</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/clear-values-in-jqgrid-postdata-parameter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>shaded2 on clear values in jqgrid postData parameter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/clear-values-in-jqgrid-postdata-parameter#p24433</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/clear-values-in-jqgrid-postdata-parameter#p24433</guid>
        	        	<description><![CDATA[<table border="0">
<tbody>
<tr>
<td class="votecell">
<div class="vote"><a class="vote-down-off" title="This question does not show any research effort; it is unclear or not useful (click again to undo)" target="_blank"></a><a class="star-off" title="This is a favorite question (click again to undo)" href="http://stackoverflow.com/questions/6985709/clear-values-in-jqgrid-post-parameter-array" target="_blank"><br /></a></div>
</td>
<td class="postcell">
<div>
<div class="post-text">
<p>I have a jqgrid instance which posts an array of ids to the server. I  would like the pass in a new list when an event is triggered. Instead  of overwriting the old list, jqgrid will add to it. How can i set the  post parameters to create a new list each time I reload the grid.</p>
<p>This is the code to reload the grid with new post data</p>
<pre class="default prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit5493' value='Select Code' data-codeid='sfcode5493' /></p><div class='sfcode' id='sfcode5493'>&#160; $(&#39;#gridConfirm&#39;).jqGrid(&#39;setGridParam&#39;,{postData:{&#39;deviceIDs&#39;:$("#device").val()}});<br />&#160; $(&#39;#gridConfirm&#39;).trigger(&#39;reloadGrid&#39;);<br /><br /></div></pre>
<p>I&#39;ve confirmed that $("#device").val() returns a list of id&#39;s in the  form "5,6,7,8"; So i&#39;m expecting this list to be posted to the server.</p>
<p>Instead, its posting "5,6,7,8" plus the previous list. so if the previous list was "1,2,3,4". It&#39;s posting "5,6,7,8,1,2,3,4"</p>
<p>How can i clear the previous posted list when reloading the grid?</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
]]></description>
        	        	<pubDate>Sat, 27 Aug 2011 01:32:33 +0300</pubDate>
        </item>
</channel>
</rss>