<?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: About row formatter</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/about-row-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/about-row-formatter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>qujiakang on About row formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/about-row-formatter#p23571</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/about-row-formatter#p23571</guid>
        	        	<description><![CDATA[<p>Oh.dear jqgrid team:</p>
<p>&#160; &#160; &#160;I very like this jq plugin , but data formatter is not easy to use ,default formatter method require to return a html string to display,</p>
<p>you know ,some formatter may be an img dom element ,or link,or button,or other to action some user operation, &#160;which must need</p>
<p>to response event ,like mouse click ,mouse over,etc. &#160;then ,current code is very unconvention to add those event to !!</p>
<p>eg. &#160;</p>
<p>&#160; &#160; i want add a formatter it seems likes a button ,when a click the button ,i show some infomation</p>
<p>&#160; &#160;current code i must</p>
<p>&#160; &#160;formatter:function(){</p>
<p>&#160; &#160; &#160; &#160; &#160; return "&#60;button onclick=&#39;alert(msg)&#39;&#62;info&#60;/button&#62;"</p>
<p>&#160; }&#160;</p>
</p>
<p>&#160;i hope it as flowing:</p>
<p>&#160;formatter :function(){</p>
<p>&#160; &#160; &#160;return $("&#60;button&#62;into&#60;/button&#62;").click(function(){</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160;alert("msg");</p>
<p>&#160; &#160; &#160;});</p>
<p>}</p>
</p>
<p>&#160; &#160; it &#39;s good that formatter method to return a dom element itself than a string ,</p>
<p>&#160; &#160;thanks</p>
]]></description>
        	        	<pubDate>Sun, 12 Jun 2011 04:53:26 +0300</pubDate>
        </item>
</channel>
</rss>