<?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: How to get ColModel Name and Width</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width</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/how-to-get-colmodel-name-and-width/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>zenixgrace on How to get ColModel Name and Width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17271</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17271</guid>
        	        	<description><![CDATA[<p><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /> <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /> <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
<p>thanks u michael..</p>
<p>your information are very help me..</p>
</p>
<p>thanks u so much sir..</p>
<p>Best regards,</p>
<p>Zenixgrace</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 13:39:25 +0300</pubDate>
        </item>
        <item>
        	<title>michaelg on How to get ColModel Name and Width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17261</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17261</guid>
        	        	<description><![CDATA[<p>Hi Zenixgrace,</p>
</p>
<p>I&#39;m not sure to be honest, but i do know that the width returned will be the current width after resizing the columns.&#160; I use that code to get the column size after the user resizes it so that I can save it and restore its size later on</p>
</p>
<p>Cheers,</p>
<p>Michael</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 01:27:32 +0300</pubDate>
        </item>
        <item>
        	<title>zenixgrace on How to get ColModel Name and Width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17208</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17208</guid>
        	        	<description><![CDATA[<p>thanks michaell...</p>
<p>it works..</p>
<p>u know what i want..</p>
<p>😀</p>
</p>
<p>but why the return value is not same with the origin value</p>
<p>in that example i set col no width 25 when i call the col no width its return 24..</p>
<p>it occur at the others col width..</p>
</p>
<p>it&#39;s a bug or not?</p>
</p>
<p>Best Regards,</p>
<p>Zenixgrace</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 09:09:33 +0300</pubDate>
        </item>
        <item>
        	<title>michaelg on How to get ColModel Name and Width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17203</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17203</guid>
        	        	<description><![CDATA[<p>Hi zenixgrace,</p>
</p>
<p>I believe that this code is what you want ...</p>
<p>var a = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;colModel&#39;);</p>
<p>alert(a[0].name);</p>
<p>alert(a[0].width);</p>
<p>alert(a[1].name);</p>
<p>alert(a[1].width);</p>
<p>etc.</p>
</p>
<p>Cheers,</p>
<p>Michael</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 06:24:15 +0300</pubDate>
        </item>
        <item>
        	<title>zenixgrace on How to get ColModel Name and Width</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17168</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-get-colmodel-name-and-width#p17168</guid>
        	        	<description><![CDATA[<p>hiiii...</p>
<p>i&#39;m a newbie..</p>
<p>i have a grid that code like that</p>
<p>jQuery(&#39;#tableGrid&#39;).jqGrid({<br />&#160;&#160; &#160;scroll: 1,<br />&#160; &#160;&#160;&#160; &#160;//url:&#39;../admspanel/maingridrptsentmail.php&#39;,<br />&#160;&#160; &#160;datatype: "xml",<br />&#160;&#160; &#160;height: 470,<br />&#160;&#160; &#160;mtype:"POST",<br />&#160; &#160;&#160;&#160; &#160;colNames:[&#39;No&#39;,&#39;Mail&#39;, &#39;Count&#39;],<br />&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;no&#39;,index:&#39;no&#39;, width:25, align:"right"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Mail&#39;,index:&#39;Mail&#39;, width:515},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;countMail&#39;,index:&#39;countMail&#39;, width:100, align:"right",formatter:&#39;integer&#39;,formatoptions:{thousandsSeparator:","}},<br />&#160; &#160;&#160;&#160; &#160;],<br />&#160; &#160;&#160;&#160; &#160;rowNum:100,<br />&#160; &#160;&#160;&#160; &#160;//rowList:[10,20,30],<br />&#160; &#160;&#160;&#160; &#160;pager: &#39;#navGrid&#39;,<br />&#160; &#160;&#160;&#160; &#160;sortname: &#39;Mail&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;multiselect: false,<br />&#160;&#160; &#160;subGrid : true,&#160;&#160; &#160;<br />&#160;&#160; &#160;reloadGrid:false,<br />&#160;&#160; &#160;//subGridUrl: &#39;../admspanel/subgridrptsentmail.php&#39;,<br />&#160;&#160;&#160; subGridModel: [{ name&#160; : [&#39;No&#39;,&#39;Sent Date&#39;,&#39;Type&#39;,&#39;Subject&#39;,&#39;Mail&#39;], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width : [25,100,100,200,300],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;align : [&#39;right&#39;] } <br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; caption: "Examplel",<br />&#160;&#160; &#160;footerrow: true,<br />&#160;&#160; &#160;userDataOnFooter: true<br />});<br />jQuery(&#39;#tableGrid&#39;).jqGrid(&#39;navGrid&#39;,&#39;#navGrid&#39;,{add:false,edit:false,del:false,search:false,refresh:false});</p>
</p>
<p>i try to get name and width of colModel</p>
<p>my code to get col model like that</p>
<p>var a = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;colModel&#39;);<br />alert(a);</p>
</p>
<p>it return [object object], [object object], [object object], [object object]</p>
</p>
<p>how can i get that name and width of colmodel?</p>
<p>is my code wrong ?</p>
<p>correct me if i have wrong..</p>
<p>what should i do to complete it?</p>
</p>
<p>can some body help me?</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Fri, 14 May 2010 13:42:29 +0300</pubDate>
        </item>
</channel>
</rss>