<?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: Help with onCellSelect</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-oncellselect</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/help-with-oncellselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Help with onCellSelect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-oncellselect#p6805</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-oncellselect#p6805</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>totcol in the code does not have any value, thus var carriercol = totcol + 1; is undefined.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 20 May 2009 13:20:56 +0300</pubDate>
        </item>
        <item>
        	<title>Jim P on Help with onCellSelect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-with-oncellselect#p6754</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-with-oncellselect#p6754</guid>
        	        	<description><![CDATA[<p>How can I pass the value of a different column than the one I&#39;ve selected?</p>
<p>I&#39;m trying to pass the value of two columns in a url.&#160; How do I reference the second column?</p>
<p>This is my current code:</p>
<p>&#160;&#160;&#160;&#160;onCellSelect: function(rowid,iCol,cellcontent){<br />&#160;&#160;&#160;&#160;// because of hidden columns we need to calculate which are hidden or not to put the link on the waybill number<br />&#160;&#160;&#160;&#160;var hidesite = &#60;cfoutput&#62;#session.myGridSHP_Site_Name#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;var hideinvoice = &#60;cfoutput&#62;#session.myGridshp_cust_ref_no#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;var hideacctname = &#60;cfoutput&#62;#session.myGridSHP_Acct_Name#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;var hideacctemail = &#60;cfoutput&#62;#session.myGridSHP_Acct_Email#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;var totcol = 6 + hidesite + hideinvoice + hideacctname + hideacctemail;<br />// The&#160;carrier col is the next one always<br />&#160;&#160;&#160;&#160;var carriercol = totcol + 1;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160; //create link from these columns two columns (waybillno is WB, C is carrier)<br />&#160;&#160;&#160;&#160; if (iCol == totcol)<br />&#160;&#160;&#160;&#160;&#160;&#160; {window.location.href = "trackit.cfm?WB="+cellcontent+"&#38;C="+carriercol.cellcontent;}<br />&#160;&#160;&#160;&#160;},</p>
<p>This is what I get now:</p>
<p><a href="http://localhost:8500/pti/PARView/trackit.cfm?WB=519552&#38;C=undefined" target="_blank"><a href="http://localhost:8500/pti/PARV" rel="nofollow">http://localhost:8500/pti/PARV</a>.....=undefined</a></p>
<p>Thanks Tony</p>
]]></description>
        	        	<pubDate>Tue, 19 May 2009 10:04:05 +0300</pubDate>
        </item>
</channel>
</rss>