<?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: groupText help</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grouptext-help</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/grouptext-help/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>akwolf on groupText help</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grouptext-help#p28814</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grouptext-help#p28814</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have been working with jqgrid for a couple of months. &#160;Now, my peers want me to group the data and add buttons into the group row header, so that they can call up documents related to the group. &#160;I have tried using the groupView -&#62; groupText but it doesn&#39;t work. &#160;It is like the groupText row has it&#39;s own DOM that doesn&#39;t understand any other script on the page or references to other columns. &#160;I have an example code below</p>
</p>
<p>setup A:</p>
<p>groupView:</p>
<p><span style="white-space: pre;"> </span>groupText: ["{0} {1} : &#60;button class=&#39;mybutton&#39;&#62;{fileguid}&#60;/button&#62;"]</p>
<p>...</p>
<p>$(&#39;.mybutton&#39;).button({icons: [{primary: "ui-icon-document"}]});</p>
</p>
<p>outcome: the button does not render and the fileguid field is not accessible</p>
</p>
<p>setup B:</p>
<p>groupView:</p>
<p><span style="white-space: pre;"> </span>groupText: mycustomfunc()</p>
<p>...</p>
<p>var mycustomfunc = function(cellval, options, rowObject) {</p>
<p><span style="white-space: pre;"> </span>return cellval + "&#60;input type=&#39;button&#39; value=&#39;mybutton&#39; onclick=&#39;alert("" + rowObject + "")&#39;/&#62;";</p>
<p>}</p>
</p>
<p>outcome: error cellval and rowobject undefined</p>
</p>
<p>I am at lost. &#160;My project is coming due in about 2 weeks and need a way to solve this or I will have to switch to a different jquery grid.</p>
]]></description>
        	        	<pubDate>Fri, 17 May 2013 07:18:29 +0300</pubDate>
        </item>
</channel>
</rss>