<?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: Default methods for all grids</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids</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/default-methods-for-all-grids/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Daniyel on Default methods for all grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15521</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15521</guid>
        	        	<description><![CDATA[<p>I have like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit842' value='Select Code' data-codeid='sfcode842' /></p>
<div class='sfcode' id='sfcode842'>
<p>jQuery(document).ready(function() {</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.extend(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery.jgrid.defaults,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //some functions here and variables</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
<p>});</p>
</div>
<p>And if i put for e.g.:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5192' value='Select Code' data-codeid='sfcode5192' /></p>
<div class='sfcode' id='sfcode5192'>loadComplete: function() { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; grid.resize();<br />}&#160;</div>
<p>&#160;</p>
<p>the function works but only if i trigger some event first. Like when i load page grid doesnt resize, but if i switch to toher page or expand grid or trigger some kind of other event then grid resizes and then it works.</p>
</p>
<p>Hm...</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 16:35:51 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Default methods for all grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15256</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15256</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This can be done.</p>
<p>After you load the needed grid files do the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4128' value='Select Code' data-codeid='sfcode4128' /></p>
<div class='sfcode' id='sfcode4128'>
<p>jQuery.extend(jQuery.jgrid.defaults,</p>
<p>loadComplete: function() {</p>
<p>// do something</p>
<p>});</p>
</div>
<p>and loadCoplete will be default for all your grids.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Mar 2010 20:10:31 +0200</pubDate>
        </item>
        <item>
        	<title>Daniyel on Default methods for all grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15246</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/default-methods-for-all-grids#p15246</guid>
        	        	<description><![CDATA[<p>Hi.</p>
</p>
<p>Is it possbile to define for e.g.: default action for all grids.</p>
</p>
<p>like loadComplete: some action which should be same for all grids so if i had like 100s of grids, i wouldn&#39;t have to call it inside every grid I made earlier or will make in the future?</p>
</p>
<p>Thank you.</p>
]]></description>
        	        	<pubDate>Mon, 01 Mar 2010 10:21:51 +0200</pubDate>
        </item>
</channel>
</rss>