<?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: JQgrid - conditional display of edit dialog</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog</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/jqgrid-conditional-display-of-edit-dialog/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on JQgrid - conditional display of edit dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29390</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29390</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Why so complex? There is a very elegant solution if you use beforeInitData event. You will need just to look at /jqgridwiki/doku.php?id=wiki:form_editing&#38;s[]=beforeinitdata</p>
]]></description>
        	        	<pubDate>Sun, 25 Aug 2013 11:56:18 +0300</pubDate>
        </item>
        <item>
        	<title>rajeshj_18 on JQgrid - conditional display of edit dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29387</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29387</guid>
        	        	<description><![CDATA[<p>fixed this by using below code</p>
<p>var grid = $("#list");                 var gid = $.jgrid.jqID(grid[0].id);                 var $td;                 if (isLocked == false) {                     $td = $(&#39;#add_&#39; + gid);                     $td.hide();                     $td = $(&#39;#edit_&#39; + gid);                     $td.hide();                     $td = $(&#39;#del_&#39; + gid);                     $td.hide();                     //$(&#39;#pager_left&#39;).attr({ style: ["display:none"] })                 }                 else {                     $td = $(&#39;#add_&#39; + gid);                     $td.show();                     $td = $(&#39;#edit_&#39; + gid);                     $td.show();                     $td = $(&#39;#del_&#39; + gid);                     $td.show();                     //$(&#39;#pager_left&#39;).attr({ style: ["display:inline"].join(&#39; &#39;) })                 }</p>
]]></description>
        	        	<pubDate>Sat, 24 Aug 2013 01:44:24 +0300</pubDate>
        </item>
        <item>
        	<title>rajeshj_18 on JQgrid - conditional display of edit dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29386</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-conditional-display-of-edit-dialog#p29386</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>i am new to jqgrid and after searching out for lot of examples, i got a grid loading and working fine. &#160;I have the edit button in the navGrid. &#160;when i select a row and click edit, the edit dialog is popping up.</p>
<p>but i want to control this action. &#160;i want the edit dialog to show up only when some condition meets. &#160;condition can be like a variable being set in database or javascript.</p>
<p>is it possible?</p>
</p>
<p>my code is like below</p>
<p>..}).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{},editSettings,addSettings,delSettings,&#8230;</p>
<p>editSettings = {</p>
<p>onclickSubmit:onclickSubmitLocal&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; closeAfterEdit:true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; savekey: [true,13],&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; closeOnEscape:true,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; reloadAfterSubmit:false,&#160;jqModal:false,</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; } &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>basically i have two buttons on my page - "Lock for edit" and "unlock". &#160;if the user wants to make any change, they shd first lock the table, so that it is visible to others in read only mode. &#160;so without clicking "lock for edit" button, they shd not be able to edit or delete the rows. &#160;how do i do it?</p>
<p>please help.</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Sat, 24 Aug 2013 00:49:09 +0300</pubDate>
        </item>
</channel>
</rss>