<?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: Row Variable</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/row-variable</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/row-variable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>scavanger on Row Variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-variable#p7030</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-variable#p7030</guid>
        	        	<description><![CDATA[<p>yep I am stupid.</p>
<p>I just added this to the code and i am all good.</p>
<p>var flid = $(&#39;#RecList&#39;).getGridParam(&#39;selrow&#39;);</p>
<p>and changed the url to include/view_file.cfm?FLID=&#8221;+flid</p>
<p>and I am good to go.</p>
]]></description>
        	        	<pubDate>Wed, 03 Jun 2009 09:51:56 +0300</pubDate>
        </item>
        <item>
        	<title>scavanger on Row Variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/row-variable#p7019</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/row-variable#p7019</guid>
        	        	<description><![CDATA[<p>Hi everybody.</p>
<p>First, I want to say what a great tool jqgrid is.&#160; It is becoming the foundation of an application I am building.&#160; It is just AWESOME!!</p>
</p>
<p>I am having a problem, I am using navButtonAdd to add a button that calls a jquery modal that displays an embedded pdf.&#160; I am able to open the dialog box no problem and it goes to the right page.&#160; But, it doesn&#39;t get the "id" variable from the column and I don&#39;t know what I am doing wrong.&#160; Can someone help me?</p>
<p>Here is the code I am using:</p>
</p>
<p>&#60;script&#62;<br />$(document).ready(function()<br />&#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#RecList").jqGrid(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;include/RecInvFiles.cfc?method=RecInvFiles&#38;AID=&#60;cfoutput&#62;#url.AID#&#60;/cfoutput&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;file_id&#39;,&#39;file_class_id&#39;,&#39;Account&#39;,&#39;Report Date&#39;,&#39;Fund Name&#39;,&#39;Report Class&#39;,&#39;File Type&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel :[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;file_id&#39;,index:&#39;file_id&#39;, width:70, sorttype:"int", hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;file_class_id&#39;,index:&#39;file_class_id&#39;, width:70, sorttype:"int", hidden:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Account&#39;,index:&#39;Account&#39;, width:200, sorttype:"string"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;DATE&#39;,index:&#39;DATE&#39;, width:100, align:"left",sorttype:"date", datefmt:"YYYY/MM/DD"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Fund&#39;,index:&#39;Fund&#39;, width:200, sorttype:"string"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;Classname&#39;,index:&#39;Classname&#39;, width:200, align:"left",sorttype:"string"},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Ext&#39;,index:&#39;Ext&#39;, width:70,align:"left",sorttype:"string"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: $(&#39;#RecPager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:8,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[8,12,16],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: "file_id",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect:false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;/test/script/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height:&#39;auto&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hiddengrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar:[true,"top"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "ROWS",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "PAGE", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records:"RECORDS", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: "", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "0" <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#RecList").navGrid(&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; "#RecPager",{add:false,edit:false,del:false,view:false,search:false,refresh:false}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ).navButtonAdd(&#39;#RecPager&#39;,{caption:"View",onClickButton: function(id)<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var settings = {bgiframe: true,resizable: false,width:450,height:300,modal: true,overlay: {backgroundColor: &#39;#000&#39;,opacity: 0.5},buttons: {&#39;Cancel&#39;: function() { $(this).dialog("destroy").remove(); }}};<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jqm_launcher(&#39;Viewed&#39;,"include/view_file.cfm?FLID="+id,settings);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; <br />function jqm_launcher( title, page, settings ) <br />{<br />&#160;&#160;&#160; $("#dialog").dialog("destroy").remove();<br />&#160;&#160;&#160; $(&#39;&#60;div id="dialog" title="&#39;+title+&#39;"&#62;&#60;/div&#62;&#39;).appendTo("body");<br />&#160;&#160;&#160; $("#dialog").load(page);&#160;&#160;&#160; <br />&#160;&#160;&#160; $("#dialog").dialog(settings);<br />};<br />&#60;/script&#62;</p>
</p>
<p>I am sure it is something stupid, but any help would be greatly appreciated.</p>
</p>
<p>Thanks again.</p>
]]></description>
        	        	<pubDate>Tue, 02 Jun 2009 17:04:41 +0300</pubDate>
        </item>
</channel>
</rss>