<?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: TypeError c is undefined in getCellIndex</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/typeerror-c-is-undefined-in-getcellindex</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/typeerror-c-is-undefined-in-getcellindex/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>alnkapa on TypeError c is undefined in getCellIndex</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/typeerror-c-is-undefined-in-getcellindex#p26991</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/typeerror-c-is-undefined-in-getcellindex#p26991</guid>
        	        	<description><![CDATA[<p>function getCellIndex exit with error: TypeError c is undefined</p>
<p>jQuery v1.7</p>
<p>firefox 14.0.1</p>
<p>I get this error when click on cell:</p>
<pre>Cell define:
function _formatterControl (cellvalue, options, rowObject) {
        var div = &#39;&#60;img class="checkbox" src="/blog/&#39;;
        if (!cellvalue) {
            div += checkboxoff;
        }else {
            div += checkboxon;
        }
        div += &#39;" alt="" /&#62;&#39;;
        return div;

}

.....
{
                    name:&#39;control&#39;,
                    align: &#39;center&#39;,
                    width: &#39;18px&#39;,
                    sortable: false,
                    formatter:_formatterControl
},
..

the function: 

getCellIndex : function (cell) {
            var c = $(cell);
            if (c.is(&#39;tr&#39;)) {
                return -1;
            }
            c = (
                !c.is(&#39;td&#39;)
                &#38;&#38;
                !c.is(&#39;th&#39;) ? c.closest("td,th") : c
                )[0];
            console.log (c); --- here I get undefined
            if ($.browser.msie) {
                return $.inArray(c, c.parentNode.cells);
            }
            return c.cellIndex;
        }<span style="white-space: normal;">
</span></pre>
]]></description>
        	        	<pubDate>Mon, 23 Jul 2012 11:35:03 +0300</pubDate>
        </item>
</channel>
</rss>