<?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: Bug with removePostDataItem?</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-removepostdataitem</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/bugs/bug-with-removepostdataitem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>office_rat on Bug with removePostDataItem?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/bug-with-removepostdataitem#p13781</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/bug-with-removepostdataitem#p13781</guid>
        	        	<description><![CDATA[<p>I have a 2 buttons with following JavaScript oncLick function calls:</p>
<p>SearchByDebitDate(false) &#8211; do search by debit date. (search button)</p>
<p>SearchByDebitDate(true) &#8211; clear previous search. (clear button)</p>
</p>
<p>Here is a function&#39;s body:</p>
</p>
<p>function SearchByDebitDate(isClear) <br />&#160; {</p>
<p>&#160;&#160;&#160; var dtFrom = document.getElementById(&#39;&#60;%=edDebitDateFrom.ClientID%&#62;&#39;);<br />&#160;&#160;&#160; var dtTo = document.getElementById(&#39;&#60;%=edDebitDateTo.ClientID%&#62;&#39;);</p>
<p>&#160;&#160;&#160; if (isClear) {<br />&#160;&#160;&#160;&#160;&#160; dtFrom.value = &#39;&#39;;<br />&#160;&#160;&#160;&#160;&#160; dtTo.value = &#39;&#39;;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#report&#8221;).removePostDataItem(dtFrom);<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#report&#8221;).removePostDataItem(dtTo);<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; else <br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#8221;#report&#8221;).setPostData({ dtFrom: dtFrom.value, dtTo: dtTo.value });<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; jQuery(&#8221;#report&#8221;).trigger(&#39;reloadGrid&#39;);&#160;&#160;&#160; <br />&#160; }</p>
</p>
<p>1. I click &#8220;Search&#8221; button. Additional parameters will added to Ajax request.</p>
<p>2. When I click &#8220;Clear&#8221; button jqGrid creates an Ajax request. On server side I can still see in request query string unremoved two parameters dtFrom and dtTo.</p>
</p>
<p>It is a bug of jqGrid or a bug with my brain? <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
</p>
<p>p.s. I have a latest 3.6.2 version of jqGrid, 1.3.2 verison of jQuery and 1.7.2 version of jQuery-ui.</p>
<p>pp.s. Sorry for my bad English 🙁</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Mon, 11 Jan 2010 18:41:53 +0200</pubDate>
        </item>
</channel>
</rss>