<?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: jqGrid reload doesn't restore the original state</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state</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/jqgrid-reload-doesnt-restore-the-original-state/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>umax on jqGrid reload doesn't restore the original state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29861</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29861</guid>
        	        	<description><![CDATA[<p>oh i forgot the css, here it is</p>
</p>
<p>.enabled-background-color {</p>
<p><span style="white-space: pre;"> </span>background-color: #DFD;</p>
<p>}&#160;</p>
]]></description>
        	        	<pubDate>Tue, 19 Nov 2013 21:19:55 +0200</pubDate>
        </item>
        <item>
        	<title>umax on jqGrid reload doesn't restore the original state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29860</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29860</guid>
        	        	<description><![CDATA[<p>Thank you Tony for replying and i am sorry i didn&#39;t notice your reply as i found a solution. Here is what i did.</p>
<p>i added below code in a function and called it when creating the dialog..</p>
</p>
<p><span style="font-size: 14px;">var rows = $j("tr.jqgrow", $table[0]);</span></p>
<p>for (var i = 0; i &#60; rows.length; i++) {</p>
<p><span style="white-space: pre;"> </span>var row_id_string = rows[i].id;</p>
<p><span style="white-space: pre;"> </span>$j("#" + row_id_string).attr(&#39;disabled&#39;, false);</p>
<p><span style="white-space: pre;"> </span>$j("#" + row_id_string, $table).addClass(&#39;enabled-background-color&#39;);</p>
<p>}</p>
<p>$table.jqGrid(&#39;resetSelection&#39;);</p>
<p>$table.jqGrid("clearGridData", true);</p>
]]></description>
        	        	<pubDate>Tue, 19 Nov 2013 21:16:19 +0200</pubDate>
        </item>
        <item>
        	<title>tony on jqGrid reload doesn't restore the original state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29820</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29820</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Do you have any jqGrid events called?</p>
<p>It seems you call again</p>
<p>("#"+row_id_string).attr(&#39;disabled&#39;, true);</p>
<p>Please check your conditions on which case you do this</p>
<p>Can you please provide us a link to the problem?</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Sun, 10 Nov 2013 12:07:54 +0200</pubDate>
        </item>
        <item>
        	<title>umax on jqGrid reload doesn't restore the original state</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29804</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-reload-doesnt-restore-the-original-state#p29804</guid>
        	        	<description><![CDATA[<ul>
<li>jqGrid is created and 2 rows are&#160;shown</li>
<li>one row is selectable and the other is disabled and color is gray
<ul>
<li>$("#"+row_id_string).attr(&#39;disabled&#39;, true);</li>
<li>$("#"+row_id, grid).css({&#39;background-color&#39;:&#39;#f0f0f0&#39;});</li>
</ul>
</li>
<li>$grid.jqGrid("clearGridData", true); is called</li>
<li>now i need to load the grid with new data and restore the original styling and attributes
<ul>
<li>i call $grid.jqGrid({...}) and then&#160;$grid.jqGrid(&#39;setGridParam&#39;, {data : gridData}).trigger(&#39;reloadGrid&#39;);</li>
<li>no rows should be disabled</li>
<li>no rows should have color gray</li>
</ul>
</li>
<li>but my reloaded grid still has one diabled row with gray color..</li>
</ul>
<p>i tried gridUnload which removes the grid from view and gridDestroy removes the html..both of which i do not need..</p>
<p>data is loading properly..what am i supposed to do..!</p>
]]></description>
        	        	<pubDate>Thu, 07 Nov 2013 22:23:23 +0200</pubDate>
        </item>
</channel>
</rss>