<?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: be able to hide/show/disable/enable buttons from the navirator bar</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/be-able-to-hideshowdisableenable-buttons-from-the-navirator-bar</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/feature-request/be-able-to-hideshowdisableenable-buttons-from-the-navirator-bar/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on be able to hide/show/disable/enable buttons from the navirator bar</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/be-able-to-hideshowdisableenable-buttons-from-the-navirator-bar#p24285</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/be-able-to-hideshowdisableenable-buttons-from-the-navirator-bar#p24285</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I read from time to time close requirements about the buttons in the navirator bar. Mostly it&#39;s the following requirements</p>
<ul>
<li>to make standard navigator buttons visible or hidden dynamically (see <a href="http://stackoverflow.com/questions/7056859/jqgrid-resolve-the-grid-pager-id-dynamically/7057838#7057838" target="_blank">here</a> an example)</li>
<li>to enable/disable navigator button (like Edit/Delete) based on the current selected row (see <a href="http://stackoverflow.com/questions/5373693/jqgrid-how-to-set-toolbar-options-based-on-column-value-in-row-selected/5376355#5376355" target="_blank">here</a> an example)</li>
<li>include the id of the current selected row as the additional parameter of the onClickButton callback function of the navButtonAdd.</li>
<li>include in navButtonAdd some simple tests which allow to skip adding of the button if the same button (with the same buttonicon for example) already exist. In the way&#160;</li>
</ul>
<p>Mostly first two requirements seems me interesting. So I suggest the following:</p>
<ol>
<li>to change the current behavior of the navGrid creation. One can <strong>create all</strong> standard buttons in the navigator bar, <strong>but hide the buttons having false setting</strong>.</li>
<li>with respect of call navGrid at the second time one can ignore all other parameters excepting boolean parameters edit, add, del, search, refresh and view. One can <strong>use the second navGrid&#160;call to make the corresponding buttons visible or hide</strong> there. In the same way one can add new boolean "visible" property to navButtonAdd and allows multiple call navButtonAdd to change the visibility of the custom button.&#160;If the second call you don&#39;t like, one can provide another method which would allow to hide or to show the standard navigator icons.</li>
<li><strong>show Edit and Delete navigator buttons disabled per default and enable there if the current selected row is editable</strong>:<br /><a href="http://www.ok-soft-gmbh.com/jqGrid/EdableDisableEditDelNavigatorButtons.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/EdableDisableEditDelNavigatorButtons.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></li>
<li>provide callback functions which allows to enable any button based of the selected row (like beforeSelectRow which return true or false can be used to allow to select rows).</li>
<li>provide methods which can be used to explicitly disable/enable any button from the navigator toolbar.</li>
</ol>
<p>It seems to me that the suggestions are very common and the changes which I suggest could be interesting to all jqGrid users</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 15 Aug 2011 18:58:59 +0300</pubDate>
        </item>
</channel>
</rss>