<?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: Need help with conditionally displaying the Add modal dialog in jqgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid</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/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>joy_vik on Need help with conditionally displaying the Add modal dialog in jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28403</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28403</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
</p>
<p>You can use the beforeInitData event. Returning false does not lunch the form.</p>
<p>Please <a href="/jqgridwiki/doku.php?id=wiki:form_editing&#38;s[]=beforeinitdata" target="_blank">look here</a></p>
</p>
<p>Regards</p>
</blockquote>
<hr />
<p>Huge thanks...this is just what i needed, thanks a lot <img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
]]></description>
        	        	<pubDate>Wed, 06 Mar 2013 10:26:32 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Need help with conditionally displaying the Add modal dialog in jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28401</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28401</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>You can use the beforeInitData event. Returning false does not lunch the form.</p>
<p>Please <a href="/jqgridwiki/doku.php?id=wiki:form_editing&#38;s[]=beforeinitdata" target="_blank">look here</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 06 Mar 2013 09:44:46 +0200</pubDate>
        </item>
        <item>
        	<title>joy_vik on Need help with conditionally displaying the Add modal dialog in jqgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28400</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/need-help-with-conditionally-displaying-the-add-modal-dialog-in-jqgrid#p28400</guid>
        	        	<description><![CDATA[<p>Hallo Everyone,</p>
<p>I have a jqgrid, and in the page there are also several other fields, the request is to one filed has to be validated when i click on "Add" button in the jqgrid.</p>
<p>if the validation fails then the add modal dialog should not be displayed.</p>
<p>I wrote the validation function in beforeShowForm event for the "Add" button.</p>
<p>but I can not find any way to stop the add popup dilaog from displaying even after the validation falied.</p>
<p>Below is the partial code with which I have tried</p>
<p>.navGrid("#pager",</p>
<p>...</p>
<p>{closeAfterAdd: true, beforeShowForm: beforeShowFormEventForAdd, jqModal: false, width: 400, afterSubmit: afterSubmitEvent, editData: { Ext_MAC: Ext_MAC} },&#160; //add</p>
<p>...);</p>
<p>function beforeShowFormEventForAdd(formid) {<br />&#160;&#160;&#160; // Validate BAN and Zip code field when a femto device is about to be added, femto device depends on existing and correctly formatted Zip and BAN<br />&#160;&#160;&#160; if (checkBANAndZipFileds()) { //Add Dialog will appear only if the BAN and Zip fields are in correct format<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; beforeShowFormEvent(formid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; MakeSerialNumberOnAddClick(formid);<br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; else<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //$(formid).css("display","none !important"); did not work; displayed the whole dialog with all editable columns</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(formid).hide(); // partially worked; displayed only the title caption and the submit, cancel button, rest of the form was hidden.<br />}</p>
</p>
<p>so, please help me guys with this, i need to completely stop dispalying the add popup dilaog if the validation fails.</p>
</p>
<p>Thanks in Advance...</p>
]]></description>
        	        	<pubDate>Wed, 06 Mar 2013 09:25:25 +0200</pubDate>
        </item>
</channel>
</rss>