<?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: formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id</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/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6873</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6873</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not see anything wrong here. What does not work? What is shown when the grid is generated and and you mouse over the link?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 25 May 2009 02:21:55 +0300</pubDate>
        </item>
        <item>
        	<title>casperd on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6831</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6831</guid>
        	        	<description><![CDATA[<blockquote>
<p>Hi John,</p>
<p>How did you solve the issue to open it in a new window?</p>
<p>Thanks!</p>
<p>--------------------------------------------------------------------------------</p>
<p>jmcleod3 said:</p>
<p>First off. Excellent grid.</p>
<p>I have used the ExtJS grid with a ton of sleepless nights, so KUDOs, Tony.</p>
<p>My latest project I have decided to go the jQuery way.&#160; The grid is up and pulling data from a MySQL DB.&#160; All&#39;s good.</p>
<p>My next task is to add a hyperlink to one of the columns(&#39;Document Attached&#39;) to open a new window based on the row ID from the DB, this will display a previously uploaded file.</p>
<p>Below is my grid:</p>
<p>$(document).ready(function(){ <br />&#160;&#160;&#160; jQuery(&#8221;#list&#8221;).jqGrid({ <br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;_getGridApplicationData.php?nd=&#39;+new Date().getTime(), <br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: &#8220;json&#8221;, <br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;App. ID&#39;,&#39;User ID&#39;,&#39;Created Date&#39;,&#39;Project Title&#39;,&#39;Total Amt. Requested&#39;,&#39;Document Attached&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;applicationId&#39;,index:&#39;applicationId&#39;, width:50, align:"center"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userId&#39;,index:&#39;userId&#39;, width:100}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;createdDate&#39;,index:&#39;createdDate&#39;, width:90}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;projectTitle&#39;,index:&#39;projectTitle&#39;, width:180, align:"right"}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;totalAmountRequested&#39;,index:&#39;totalAmountRequested&#39;, width:130, align:"right", formatter:&#39;currency&#39;, formatoptions:{thousandsSeparator:","}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;fileAttached&#39;,index:&#39;fileAttached&#39;, align:"center", width:140, formatter: &#39;showlink&#39;, formatoptions:{target:"_new", baseLinkUrl:&#39;viewAppFile.php&#39;}}<br />&#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160; &#160;&#160;&#160; imgpath:&#39;images&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;applicationId&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: &#8220;asc&#8221;,<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: &#8220;Grant Applications&#8221;<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; }).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false});<br />&#160;&#160;&#160; <br />});</p>
</p>
<p>If someone could show me a link to a working example, I could work with it to my needs.</p>
<p>Any help on this is greatly appreciated.</p>
<p>Thanks.</p>
<p>John</p>
</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Thu, 21 May 2009 01:44:35 +0300</pubDate>
        </item>
        <item>
        	<title>jmcleod3 on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6502</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6502</guid>
        	        	<description><![CDATA[<p>Thanks for the reply.</p>
<p>I had already updated to the latest version to solve a previous issue.</p>
<p>I went into fmatter.js to solve this problem.</p>
<p>I hope you don&#39;t mind, I changed it to meet our needs.</p>
<p>Consider the problem closed.</p>
<p>JohnM</p>
]]></description>
        	        	<pubDate>Tue, 05 May 2009 10:27:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6495</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6495</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Download the latest version 3.5 alfa 3 from GitHub.</p>
<p>in format options add formatoptions: { idName:&#39;MyIDName&#39;...}</p>
<p>in order to add your custom id name.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 05 May 2009 09:32:00 +0300</pubDate>
        </item>
        <item>
        	<title>jmcleod3 on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6457</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6457</guid>
        	        	<description><![CDATA[<p>I have solved my own problem. But I have another issue that may be a newbie problem.</p>
<p>When using &#39;showlink&#39; in the above example, the href link that is created for the link in the column is followed by &#39;viewAppFile.php?id=&#39;</p>
<p>I wish to change the &#39;id&#39; to &#39;applicationId&#39; how do I do this?</p>
<p>Thanks.</p>
<p>JohnM</p>
]]></description>
        	        	<pubDate>Mon, 04 May 2009 22:09:39 +0300</pubDate>
        </item>
        <item>
        	<title>jmcleod3 on formatter:'showlink' or 'link' to open new window based on retrieved DB ID</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6449</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/formattershowlink-or-link-to-open-new-window-based-on-retrieved-db-id#p6449</guid>
        	        	<description><![CDATA[<p>First off. Excellent grid.</p>
<p>I have used the ExtJS grid with a ton of sleepless nights, so KUDOs, Tony.</p>
<p>My latest project I have decided to go the jQuery way.&#160; The grid is up and pulling data from a MySQL DB.&#160; All&#39;s good.</p>
<p>My next task is to add a hyperlink to one of the columns(&#39;Document Attached&#39;) to open a new window based on the row ID from the DB, this will display a previously uploaded file.</p>
<p>Below is my grid:</p>
<p>$(document).ready(function(){ <br />&#160;&#160;&#160; jQuery("#list").jqGrid({ <br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;_getGridApplicationData.php?nd=&#39;+new Date().getTime(), <br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: "json", <br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;App. ID&#39;,&#39;User ID&#39;,&#39;Created Date&#39;,&#39;Project Title&#39;,&#39;Total Amt. Requested&#39;,&#39;Document Attached&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;applicationId&#39;,index:&#39;applicationId&#39;, width:50, align:"center"},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;userId&#39;,index:&#39;userId&#39;, width:100}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;createdDate&#39;,index:&#39;createdDate&#39;, width:90}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;projectTitle&#39;,index:&#39;projectTitle&#39;, width:180, align:"right"}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;totalAmountRequested&#39;,index:&#39;totalAmountRequested&#39;, width:130, align:"right", formatter:&#39;currency&#39;, formatoptions:{thousandsSeparator:","}}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;fileAttached&#39;,index:&#39;fileAttached&#39;, align:"center", width:140, formatter: &#39;showlink&#39;, formatoptions:{target:"_new", baseLinkUrl:&#39;viewAppFile.php&#39;}}<br />&#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;), <br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160; &#160;&#160;&#160; imgpath:&#39;images&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;applicationId&#39;, <br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: "Grant Applications"<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; }).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false});<br />&#160;&#160;&#160; <br />});</p>
</p>
<p>If someone could show me a link to a working example, I could work with it to my needs.</p>
<p>Any help on this is greatly appreciated.</p>
<p>Thanks.</p>
<p>John</p></p>
]]></description>
        	        	<pubDate>Mon, 04 May 2009 13:32:10 +0300</pubDate>
        </item>
</channel>
</rss>