<?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: getColId method missing</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/getcolid-method-missing</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/feature-request/getcolid-method-missing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on getColId method missing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/getcolid-method-missing#p13035</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/getcolid-method-missing#p13035</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this. As you can see - when we have a colModel it is easy to get the index of the column and not only this.</p>
<p>There is no such method instead and I do not plan to include it - sorry.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 15 Dec 2009 18:30:49 +0200</pubDate>
        </item>
        <item>
        	<title>Klaus on getColId method missing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/getcolid-method-missing#p12996</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/getcolid-method-missing#p12996</guid>
        	        	<description><![CDATA[<p>Hello!</p>
</p>
<p>I&#39;m missing a getter method to get the current colId (as defined in the "runtime" colModel - respecting the current column reordering).</p>
<p>I didn&#39;t find any method in the API docs in the WIKI.</p>
<p>... so I wrote my own function using a for-each-loop:</p>
<p>function getColId(colName) {<br />&#160; var colModel = $("#mytable").jqGrid(&#39;getGridParam&#39;, &#39;colModel&#39;);&#160;&#160;&#160;&#160;&#160; <br />&#160; var colId = 0;<br />&#160; $(colModel).each(function(i, val) {&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160; if (this.name == colName) {<br />&#160;&#160;&#160;&#160;&#160;&#160; colIdChildren = i;<br />&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; });<br />&#160; return colId;<br />}</p>
</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Mon, 14 Dec 2009 15:09:58 +0200</pubDate>
        </item>
</channel>
</rss>