<?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: setGridParam works strangely</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-works-strangely</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/setgridparam-works-strangely/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on setGridParam works strangely</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-works-strangely#p28480</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-works-strangely#p28480</guid>
        	        	<description><![CDATA[<p>It&#39;s important to understand, that <strong>setGridParam</strong> method don&#39;t analyse implementation specific of any parameters which one can set. The code of the method is very short and simple (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.4/js/grid.base.js#L2674-L2678" target="_blank">here</a>). It uses juse <strong>$.extend(true, ...)</strong>&#160;jQuery method.</p>
<p>What you can do for example is getting <em>the reference</em> to internal parameter using <strong>getGridParam</strong>. Then you can either assign the new value <strong>mydata2</strong>&#160;to the <strong>data</strong>. Alternatively you can assign&#160;it first to empty array and then you can use <strong>setGridParam</strong>&#160;method in the same way like you already do it.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 19 Mar 2013 15:53:52 +0200</pubDate>
        </item>
        <item>
        	<title>istiti on setGridParam works strangely</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-works-strangely#p28479</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/setgridparam-works-strangely#p28479</guid>
        	        	<description><![CDATA[</p>
<p>Hello,&#160;</p>
</p>
<p>I have my two variable</p>
<p>my variable <strong>mydata1 </strong>have 30 rows&#160;</p>
<p>my variable <strong>mydata2</strong> have 5 rows</p>
</p>
<p>&#160;And I want to switch these two data in my default jqGrid option. Actuallay default options are:</p>
<p><strong>datatype: &#39;local&#39;,</strong></p>
<p><strong>data: mydata1</strong></p>
<p><strong><br /></strong></p>
<p>but When I try to change data(with a click event) by another variable <strong>mydata2 </strong>who have 5 rows&#8230; In the GRID just 5 first rows are changing&#8230;the rest are always there&#8230;. Why there is this reaction &#160;please ? I need to change data completly&#8230;&#160;</p>
</p>
<p>This is click event:</p>
<p><strong>$(&#39;.changeDate&#39;).click(function() {</strong></p>
<p><strong><span style="white-space: pre;"> </span>grid.setGridParam({</strong></p>
<p><strong><span style="white-space: pre;"> </span>datatype : &#39;local&#39;,</strong></p>
<p><strong><span style="white-space: pre;"> </span>data : mydata2</strong></p>
<p><strong><span style="white-space: pre;"> </span>}).trigger("reloadGrid");</strong></p>
<p><strong>});</strong></p></p>
]]></description>
        	        	<pubDate>Tue, 19 Mar 2013 15:43:55 +0200</pubDate>
        </item>
</channel>
</rss>