<?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: add baseLinkUrl option for link formatter</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-baselinkurl-option-for-link-formatter</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/add-baselinkurl-option-for-link-formatter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tim on add baseLinkUrl option for link formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-baselinkurl-option-for-link-formatter#p17478</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-baselinkurl-option-for-link-formatter#p17478</guid>
        	        	<description><![CDATA[<p>nevermind (obviously a hack since it will ignore showAction with appendCell, but it does the trick):</p>
<p>$.fn.fmatter.showlink = function(cellval, opts) {var op = {baseLinkUrl: opts.baseLinkUrl,showAction:opts.showAction, addParam: opts.addParam &#124;&#124; "", target: opts.target, appendCell:opts.appendCell, idName: opts.idName }, 		target = "", idUrl;         afterUrl = ""; 		if(!isUndefined(opts.colModel.formatoptions)) { 			op = $.extend({},op,opts.colModel.formatoptions); 		} 		if(op.target) {target = &#39;target=&#39; + op.target;} 		if(op.appendCell){afterUrl=cellval;}else{afterUrl=op.showAction+&#39;?&#39;+op.idName+&#39;=&#39;+opts.rowId;} 		idUrl = op.baseLinkUrl+afterUrl+op.addParam;         if(isString(cellval)) {	//add this one even if its blank string 			return "<a  target="_blank">" + cellval + "</a>";         }else { 			return $.fn.fmatter.defaultFormat(cellval,opts); 	    }     };</p>
]]></description>
        	        	<pubDate>Thu, 27 May 2010 08:44:23 +0300</pubDate>
        </item>
        <item>
        	<title>tim on add baseLinkUrl option for link formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/add-baselinkurl-option-for-link-formatter#p17476</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/add-baselinkurl-option-for-link-formatter#p17476</guid>
        	        	<description><![CDATA[<p>Would be nice not to have to define custom formatters all the time.</p>
<p>I would like the option to do:</p>
<p>formatter: &#39;link&#39;</p>
<p>formatoptions: {&#39;baseLinkUrl&#39;: &#39;<a href="http://externalUrl/service?item=&#038;#39" rel="nofollow" target="_blank"><a href="http://externalUrl/service?ite" rel="nofollow">http://externalUrl/service?ite</a>.....=&#038;#39</a>;}</p>
<p>that would generate an href like &#160;<a href="http://externalUrl/service?item=mycellvalue" rel="nofollow" target="_blank"><a href="http://externalUrl/service?ite" rel="nofollow">http://externalUrl/service?ite</a>.....ycellvalue</a>, with format/un-format handling built in.</p>
<p>Or optionally have an option for &#39;showlink&#39; that inserts &#160;cellvalue just after the baseLinkUrl</p>
<p>ie</p>
<p>formatter: &#39;showlink&#39;</p>
<p>formatoptions: {&#39;baseLinkUrl&#39;: &#39;<a href="http://externalUrl/service?item=&#038;#39" rel="nofollow" target="_blank"><a href="http://externalUrl/service?ite" rel="nofollow">http://externalUrl/service?ite</a>.....=&#038;#39</a>;, insertCellval:true}</p>
</p>
<p>Please and Thanks,</p>
<p>tim</p></p>
]]></description>
        	        	<pubDate>Thu, 27 May 2010 06:57:58 +0300</pubDate>
        </item>
</channel>
</rss>