<?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: suggested change to fn.fmatter.showlink in 3.8 - more functionality</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/suggested-change-to-fn-fmatter-showlink-in-3-8-more-functionality</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/feature-request/suggested-change-to-fn-fmatter-showlink-in-3-8-more-functionality/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cyclone3d on suggested change to fn.fmatter.showlink in 3.8 - more functionality</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/suggested-change-to-fn-fmatter-showlink-in-3-8-more-functionality#p19098</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/suggested-change-to-fn-fmatter-showlink-in-3-8-more-functionality#p19098</guid>
        	        	<description><![CDATA[<p>When using the target parameter, it would be nice to have each different link be able to open in its own window.</p>
</p>
<p>To do this, we could make it so it target == &#39;cellval&#39;, it will build a target that will make it be able to do this.</p>
<p>If target != &#39;cellval&#39;, then it just uses whatever the target is set to &#8211; every link in that column will open in the same window.</p>
</p>
<p>The changed code is:</p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"></span></span></span></p>
<p>"if(op.target)</p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">{</span></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#160;&#160; if</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">(op.target == </span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">&#39;cellval&#39;</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">)</span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&#160;&#160;&#160;&#160;&#160; <span style="color: #008000;">// so every different&#160;link&#160;will open in it&#39;s own window&#160;</span></span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">&#160;&#160;&#160;&#160;&#160; {target = </span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">&#39;target=&#39;</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> + op.idName+opts.rowId+cellval;}</span></span><span style="font-family: Consolas; font-size: x-small;"><br /></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#160;&#160; else</span></span></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">&#160;&#160;&#160;&#160; <span style="color: #000000;">{target =&#39;target=&#39;+op.target;}</span></span></span></span></p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="color: #000000;">}"</span></span></span></span></p>
<p>cellval may be able to be taken out of the target depending on how the sorting works. If sorting do the rows still keep the same id?</p></p>
]]></description>
        	        	<pubDate>Thu, 12 Aug 2010 10:19:37 +0300</pubDate>
        </item>
</channel>
</rss>