<?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: Checkbox click event in edit form</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1</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/checkbox-click-event-in-edit-form-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>dikrid on Checkbox click event in edit form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29896</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29896</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
<p>you&#39;re welcome. Thanks for your answer, I&#39;m glad I could help a bit too 🙂</p>
<p>bye,</p>
<p>dikrid</p>
]]></description>
        	        	<pubDate>Wed, 27 Nov 2013 13:00:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Checkbox click event in edit form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29886</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29886</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Thank you for sharing your solution. Every solution is ok if it do the job.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 25 Nov 2013 18:26:25 +0200</pubDate>
        </item>
        <item>
        	<title>dikrid on Checkbox click event in edit form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29869</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29869</guid>
        	        	<description><![CDATA[<p>I solved it this way (after analysing the html code):</p>
<p>var tabform = document.getElementById(&#39;TblGrid_grid&#39;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var iCol = 1, rows = tabform.rows, i,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; c = rows.length;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (i = 1; i &#60; c; i += 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $((&#39;input[type="checkbox"]&#39;),rows[i].cells[iCol]).click(function (e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = $(e.target).closest(&#39;tr&#39;)[0].id,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; isChecked = $(e.target).is(&#39;:checked&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;clicked on the checkbox in the row with id=&#39; + id +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;\nNow the checkbox is &#39; +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (isChecked? &#39;checked&#39;: &#39;not checked&#39;));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>It can surely be optimized by finding iCol, et cetera, but I can work with this.</p>
<p>Thanks anyway,</p>
<p>dikrid</p>
]]></description>
        	        	<pubDate>Thu, 21 Nov 2013 13:04:40 +0200</pubDate>
        </item>
        <item>
        	<title>dikrid on Checkbox click event in edit form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29866</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/checkbox-click-event-in-edit-form-1#p29866</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a column with a checkbox and want to react on a click inside the edit form (where the checkbox is visible and clickable). The reason is, that I want to set some textboxes inside the edit form depending on the checkbox&#39;s value (0:1). I found Oleg&#39;s code:</p>
<p>&#160;&#160;&#160; var iCol = getColumnIndexByName ($(this), &#39;ebl&#39;), rows = this.rows, i,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; c = rows.length;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (i = 1; i &#60; c; i += 1) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $((&#39;input[type="checkbox"]&#39;),rows[i].cells[iCol]).click(function (e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = $(e.target).closest(&#39;tr&#39;)[0].id,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; isChecked = $(e.target).is(&#39;:checked&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;clicked on the checkbox in the row with id=&#39; + id +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;\nNow the checkbox is &#39; +<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (isChecked? &#39;checked&#39;: &#39;not checked&#39;));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>That does work inside the grid, but not in the edit form. How would&#160; I need to change the function? And would it have to be called in beforeShowForm of the edit form?</p>
<p>Thanks,</p>
<p>dikrid</p>
]]></description>
        	        	<pubDate>Thu, 21 Nov 2013 10:53:31 +0200</pubDate>
        </item>
</channel>
</rss>