<?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: How to enable/disable checkbox in jqgrid based on some condition</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition</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/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lupin on How to enable/disable checkbox in jqgrid based on some condition</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15342</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15342</guid>
        	        	<description><![CDATA[<p>Ok there&#39;s a dataEvents option you can you use on MODIFY_RAW_FLAG column here&#39;s mine just a sample:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4251' value='Select Code' data-codeid='sfcode4251' /></p>
<div class='sfcode' id='sfcode4251'>
<p>dataEvents: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160; type: &#39;change&#39;,fn: function(e) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ccode = $(&#39;#MODIFY_RAW_FLAG&#39;).val();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if ( ccode ==&#160;&#34;Y&#34; ) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(ccode);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#tr_clr_flag&#39;).attr(&#39;disabled&#39;,true);<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;&#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; if ( ccode ==&#160;&#34;N&#34; )<br />&#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; alert(ccode);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;$(&#39;#tr_clr_flag&#39;).attr(&#39;disabled&#39;,false);<br />&#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; } } ]</p>
</div>
<p>Above code is untested, you might need to tweak a bit to your liking and true/false might need to be change to disable,enable or something, alert was there just to make sure the events are being fired.</p>
</p>
<p>hth,</p>
</p>
<p>lupin</p>
]]></description>
        	        	<pubDate>Thu, 04 Mar 2010 04:25:36 +0200</pubDate>
        </item>
        <item>
        	<title>alps on How to enable/disable checkbox in jqgrid based on some condition</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15334</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15334</guid>
        	        	<description><![CDATA[<p>I think I need to explain in more detail: below is my jqgrid</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;&#60;%=Url.Action("", "") %&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;IdNr&#39;, &#39;Agency Num&#39;, &#39;Clear&#39;, &#39;N/C Code&#39;, &#39;Description&#39;, &#39;Date Cleared&#39;,"Modify Flag"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AGN_NUM&#39;, index: &#39;AGN_NUM&#39;, editable: false, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AGN_NUM&#39;, index: &#39;AGN_NUM&#39;, editable: false, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;clr_flag&#39;, index: &#39;clr_flag&#39;, width: 60, align: &#39;center&#39;, editable: true, edittype:"checkbox", editoptions:{value:&#39;1:0&#39;}, formatter:"checkbox", formatoptions:{disabled:false},sortable:false},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;NON_CMPL_CD&#39;, index: &#39;NON_CMPL_CD&#39;, width: 75, align: &#39;left&#39;, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;NON_CMPL_DESC&#39;, index: &#39;NON_CMPL_DESC&#39;, width: 250, align: &#39;left&#39;, editable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DATE_CLR&#39;, index: &#39;DATE_CLR&#39;, width: 80, align: &#39;left&#39;, editable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MODIFY_ROW_FLAG&#39;, index: &#39;MODIFY_ROW_FLAG&#39;, editable: false, hidden:true}<br />&#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; pager: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: -1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [5, 10, 20, 50],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;AGN_FY&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; emptyrecords: "Nothing to display",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;&#60;%=Url.Content("~/scripts/themes/basic/images")%&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 275,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }).navGrid(pager, { edit: false, add: false, del: false, refresh: true, search: false }, { navkeys: [true, 38, 40] }, {}, { url: "/Mileage/Delete" });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>I want to disable the checkbox on the grid load based on value hidden column (MODIFY_ROW_FLAG)value (Y/N) if possible.</p>
</p>
<p>if it is not possible on grid load then any other way , please advise</p>
]]></description>
        	        	<pubDate>Wed, 03 Mar 2010 16:58:09 +0200</pubDate>
        </item>
        <item>
        	<title>lupin on How to enable/disable checkbox in jqgrid based on some condition</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15327</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15327</guid>
        	        	<description><![CDATA[<p>You can disable by doing.</p>
<p>$(#ur_checkbox_id) .attr(&#39;disabled&#39;, true);</p>
</p>
<p>But there must be some events that need to toggle it on that.</p>
</p>
<p>hth,</p>
<p>lupin</p>
]]></description>
        	        	<pubDate>Wed, 03 Mar 2010 04:54:59 +0200</pubDate>
        </item>
        <item>
        	<title>alps on How to enable/disable checkbox in jqgrid based on some condition</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15318</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-enabledisable-checkbox-in-jqgrid-based-on-some-condition#p15318</guid>
        	        	<description><![CDATA[<p>How to enable/disable checkbox in jqgrid based on some condition, I have mod_flag if it has data value &#39;Y&#39; then enable otherwise disable</p>
</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Tue, 02 Mar 2010 23:41:59 +0200</pubDate>
        </item>
</channel>
</rss>