<?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: Dynamically binding events to jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid</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/dynamically-binding-events-to-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20789</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20789</guid>
        	        	<description><![CDATA[<p>Hello Andrea,</p>
<p>The event <strong>beforeSubmit</strong> is not a <a href="/jqgridwiki/doku.php?id=wiki:events#list_of_events" target="_blank">general jqGrid event</a>&#160;so you can&#39;t use <strong>setGridParam</strong> to set it dynamically. I don&#39;t know which way for it exist in the commercial jqGrid version (probably you can ask a question of the trirand.net forum). Nevertheless one way will be work&#160;independent&#160;from the implementation. You can use&#160;</p>
<p>jQuery.extend(jQuery.jgrid.edit, {<br />&#160;&#160; &#160;beforeSubmit : function(postdata, formid) {<br />&#160;&#160; &#160; &#160; &#160;/*your implementation*/<br />&#160;&#160; &#160;}<br /><span style="font-size: 13.8889px;">});</span></p>
<p>to define <strong>beforeSubmit</strong> or&#160;any <a href="/jqgridwiki/doku.php?id=wiki:form_editing#events" target="_blank">other event</a> of <a href="/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow" target="_blank">editGridRow</a> function of form editing.</p>
<p>Best regard<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Sat, 13 Nov 2010 01:42:19 +0200</pubDate>
        </item>
        <item>
        	<title>andregio on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20787</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20787</guid>
        	        	<description><![CDATA[<p>I&#39;m using the MVC version of the grid, and I cannot find how the event "beforeSubmit" for edit form should be bound at the Controller.</p>
</p>
<p>Is it possible to use setgridparam to bind the event "beforeSubmit" of the edit form? or is there a way to set it in the Controller?</p>
</p>
<p>Thanks in advance.</p>
<p>Andrea.</p></p>
]]></description>
        	        	<pubDate>Fri, 12 Nov 2010 23:05:59 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20570</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20570</guid>
        	        	<description><![CDATA[<p>You welcome Mike!</p>
<p>Warsaw is a little far from Bonn, so I am not sure that we can sometime realize the idea with a bear. Nevertheless I find the idea very good! Thanks.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 30 Oct 2010 01:03:19 +0300</pubDate>
        </item>
        <item>
        	<title>Mike54 on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20530</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20530</guid>
        	        	<description><![CDATA[<p>Big thanks Oleg!</p>
<p>I don&#39;t know how I could have missed that!</p>
<p>If you ever come to Warsaw I owe you a beer 🙂</p>
</p>
<p>Best regards,</p>
<p>Mike</p></p>
]]></description>
        	        	<pubDate>Thu, 28 Oct 2010 00:24:51 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20529</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20529</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>If you want to set any event function&#160;dynamically&#160;with</p>
<p><input type='button' class='sfcodeselect' name='sfselectit310' value='Select Code' data-codeid='sfcode310' /></p>
<div class='sfcode' id='sfcode310'>$(&#39;#list&#39;).jqGrid(&#39;setGridParam&#39;, { onSelectRow: function(id){ alert(id); } } );</div>
<p><span style="font-size: 13.8889px;">Best regards</span></p>
<p>Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Wed, 27 Oct 2010 21:07:57 +0300</pubDate>
        </item>
        <item>
        	<title>Mike54 on Dynamically binding events to jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20523</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamically-binding-events-to-jqgrid#p20523</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have the following problem.</p>
<p>When I create a Grid &#8211; and as a part of configuration provide handler function for &#8211; lets say: onSelectRow, like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9474' value='Select Code' data-codeid='sfcode9474' /></p>
<div class='sfcode' id='sfcode9474'>$(&#34;#list&#34;).jqGrid({<br />&#160; &#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;],<br />&#160; &#160; colModel:[...],<br />&#160; &#160; onSelectRow: function(rowid, status){   alert(rowid); }<br />});</div>
</p>
<p>It works like a charm and pops up alert dialog with selected row ID.</p>
<p>In my project I&#39;m importing grid configuration using &#39;jqGridImport&#39; and I would like to add / bind event handler after the grid is complete, so probably on importComplete event.</p>
<p>The problem is that if I&#39;m trying to add handlers later on, they do not work:</p>
<p>&#160;Type 1:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7677' value='Select Code' data-codeid='sfcode7677' /></p>
<div class='sfcode' id='sfcode7677'>$(&#34;#list&#34;).jqGrid({<br />&#160;onSelectRow: function(rowid, status){alert(rowid);}<br />&#160;});</div>
<p>Type 2:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9965' value='Select Code' data-codeid='sfcode9965' /></p>
<div class='sfcode' id='sfcode9965'>&#160;(&#34;#list&#34;).bind(&#34;jqGridonSelectRow&#34;, function(){ alert(&#34;a&#34;); });</div>
<p> Both examples do not work. Can you please tell me how should this be done correctly?</p>
<p>I will really appreciate any help, thank you!</p>
]]></description>
        	        	<pubDate>Wed, 27 Oct 2010 18:23:49 +0300</pubDate>
        </item>
</channel>
</rss>