<?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: Get the index of the doubleclicked cell</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell</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/get-the-index-of-the-doubleclicked-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phipps73 on Get the index of the doubleclicked cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4187</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4187</guid>
        	        	<description><![CDATA[<p>Problem solved - here&#39;s the code that works:</p>
<p>$("table.scroll").dblclick(function(e){<br />&#160;&#160; var index = e.target.cellIndex;<br />&#160;&#160; var colname = $("table.scroll &#62; thead &#62; tr &#62; th").get(index);<br />&#160;&#160; var coltext = $(colname).children("div").text();<br />&#160;&#160; alert(coltext);<br />}</p>
<p>Cheers,</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 10:17:59 +0200</pubDate>
        </item>
        <item>
        	<title>phipps73 on Get the index of the doubleclicked cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4186</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4186</guid>
        	        	<description><![CDATA[<p>Thanks Tony, but on this occasion I need to use an external dblclick handler because I am already using onSelectRow and onDblClickRow to enter inline editing mode.</p>
<p>When the user double clicks on certain cells a thickbox opens containing related info to the content of the clicked cell. I need to know the index so I can grab the corresponding header to work out which thickbox content to load.</p>
<p>Cheers,</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 09:40:24 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Get the index of the doubleclicked cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4185</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4185</guid>
        	        	<description><![CDATA[<p>Hello Dave</p>
<p>Use onCellSelect event - see the docs. Also I expect some problems in IE in case you have a hidden coulnm.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 09:06:06 +0200</pubDate>
        </item>
        <item>
        	<title>phipps73 on Get the index of the doubleclicked cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4184</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/get-the-index-of-the-doubleclicked-cell#p4184</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I am trying to get the index of the cell in jqGrid that has been clicked on. I have tried all variations on using index() and get() and parent(), I can&#39;t seem to work out how to return the index of the click cell.</p>
<p>I have the following which picks up the doubleclick:</p>
<p>#list is the id of the grid body table.</p>
<p>$("#list").dblclick(function(e){</p>
<p>// return the index of the target cell in the table<br />var index = $(e.target).index(this); <br />alert(index); // this just returns -1<br />});</p>
<p>Any ideas how I can get the index of the clicked cell within the grid.</p>
<p>Cheers,</p>
<p>Dave</p>
]]></description>
        	        	<pubDate>Tue, 27 Jan 2009 08:46:28 +0200</pubDate>
        </item>
</channel>
</rss>