<?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: Disabling custom buttons: some fixes to get this to work</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabling-custom-buttons-some-fixes-to-get-this-to-work</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/disabling-custom-buttons-some-fixes-to-get-this-to-work/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Disabling custom buttons: some fixes to get this to work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabling-custom-buttons-some-fixes-to-get-this-to-work#p16591</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabling-custom-buttons-some-fixes-to-get-this-to-work#p16591</guid>
        	        	<description><![CDATA[<p>Hello Klaus,</p>
<p>Thanks for this fix. I will test it and eventually include it in the code.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 21 Apr 2010 20:50:19 +0300</pubDate>
        </item>
        <item>
        	<title>Klaus on Disabling custom buttons: some fixes to get this to work</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/disabling-custom-buttons-some-fixes-to-get-this-to-work#p16537</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/disabling-custom-buttons-some-fixes-to-get-this-to-work#p16537</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>With some small changes in the code it is possible to disable custom buttons by means of using the CSS class "ui-state-disabled".</p>
<p>ui.jqgrid.css (fix cursor pointer)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3803' value='Select Code' data-codeid='sfcode3803' /></p>
<div class='sfcode' id='sfcode3803'>
<p>change styles FROM:<br />.ui-jqgrid .ui-jqgrid-pager .ui-pg-div {padding:1px 0;cursor:pointer; float:left;list-style-image:none;list-style-position:outside;list-style-type:none;position:relative;}</p>
<p>-&#62; TO:<br />.ui-jqgrid .ui-jqgrid-pager .ui-pg-div {padding:1px 0; float:left;list-style-image:none;list-style-position:outside;list-style-type:none;position:relative;}<br />.ui-jqgrid .ui-jqgrid-pager .ui-pg-button { cursor:pointer; }</p>
</div>
<p>grid.formedit.js (fix pg-button hover effect for disabled buttons)</p>
<p>... in navButtonAdd: change the hover function to check for "ui-state-disabled" (furthermore the inline CSS-style for cursor is not required)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9024' value='Select Code' data-codeid='sfcode9024' /></p>
<div class='sfcode' id='sfcode9024'>
<p>change grid.formedit.js FROM:<br />&#160; .hover(<br />&#160;&#160;&#160; function () {$(this).addClass(&#34;ui-state-hover&#34;);},<br />&#160;&#160;&#160; function () {$(this).removeClass(&#34;ui-state-hover&#34;);}<br />&#160; )<br />&#160; .css(&#34;cursor&#34;,p.cursor ? p.cursor : &#34;normal&#34;);</p>
<p>-&#62; TO:<br />&#160; .hover(<br />&#160;&#160;&#160; function () {&#160; // FIX for disabled buttons (do not show hover effect)<br />&#160;&#160;&#160;&#160;&#160; if (!$(this).hasClass(&#39;ui-state-disabled&#39;)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(this).addClass(&#39;ui-state-hover&#39;);<br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; function () {$(this).removeClass(&#34;ui-state-hover&#34;);}<br />&#160; )<br />&#160; //.css(&#34;cursor&#34;,p.cursor ? p.cursor : &#34;normal&#34;);&#160;&#160;&#160; // FIX: not required</p>
</div>
<p>Please apply these changes to the trunk for the next release.</p>
<p>Kind regards,<br />Klaus.</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 15:28:34 +0300</pubDate>
        </item>
</channel>
</rss>