<?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: Adding button action with row_id crashes jQuery</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/adding-button-action-with-row_id-crashes-jquery</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/bugs/adding-button-action-with-row_id-crashes-jquery/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Adding button action with row_id crashes jQuery</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/adding-button-action-with-row_id-crashes-jquery#p24528</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/adding-button-action-with-row_id-crashes-jquery#p24528</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>This is not a bug. Please read the docs. We do not pass any parameter to onClickButton.</p>
<p>You will need to use getGridParam to get the id of the selected row.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 05 Sep 2011 19:44:49 +0300</pubDate>
        </item>
        <item>
        	<title>jonandrew on Adding button action with row_id crashes jQuery</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/adding-button-action-with-row_id-crashes-jquery#p24511</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/adding-button-action-with-row_id-crashes-jquery#p24511</guid>
        	        	<description><![CDATA[<p>Hi there,</p>
<p>I&#39;m trying to add a custom button, where when someone selects a row, clicking a custom button will bring up a dialog box for that specific row. When I set up the "onClickButton" attribute with a "function(id)" it seems to crash jQuery with an error ("value = jQuery.isFunction( value ) ? value() : value;&#160;Could not convert JavaScript argument".</p>
<p>Here&#39;s how I&#39;m setting it up:</p>
<p>.navButtonAdd(&#39;#relationships-table-pager&#39;,{<br />caption:"Edit",<br />buttonicon:"ui-icon-pencil",<br />onClickButton: function(id) { self.show_company(id); },<br />position:"first"<br />});</p>
<p>When I set up "onClickButton" as "function() { ... }", then I can run the function fine. I thought running function(id) is how one would validly access a row&#39;s <em>id </em>for a function. It seems like it might be a bug, but wanted to see if others have seen this problem. Any input would also be great. Thanks!</p>
]]></description>
        	        	<pubDate>Sat, 03 Sep 2011 07:37:48 +0300</pubDate>
        </item>
</channel>
</rss>