<?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: Cancel A Form Load</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load</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/cancel-a-form-load/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Nathan on Cancel A Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7224</guid>
        	        	<description><![CDATA[<p>Thanks ! That worked great !</p>
</p>
<p>Nathan</p>
]]></description>
        	        	<pubDate>Sat, 13 Jun 2009 21:25:00 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Cancel A Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7191</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7191</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The same way as it is called in navGrid</p>
<p>&#160; if(&#160; CONDITIONS ARE RIGHT){<br />&#160;&#160;&#160; &#160;&#160; var mygrid = $("#mygridid")</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; var rowid = mygrid.getGridParam("selrow");</p>
<p>&#160;&#160;&#160;&#160;&#160; if(rowid) mygrid.editGridRow(rowid, param_for_edit);<br />&#160;&#160;&#160; }else{</p>
<p>//Open a dialog to tell the user to select the necessary information first.</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; jQuery(#myDialog).dialog(&#39;open);<br />&#160;&#160;&#160; }<br />}&#160;&#160;&#160; <br />});</p>
<p>Also you can use editGridRow as separate method.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 12 Jun 2009 01:56:20 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Cancel A Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7149</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7149</guid>
        	        	<description><![CDATA[<p>Hi Tony, thanks for the post.</p>
<p>How do invoke the form load method with the form automatically created by the colmodel with the parameters listed in the navGrid definition.&#160;</p>
<p>Alternatively, is it possible to add a buttonclick event to one of the predefined buttons?</p>
<p>Here&#39;s my working example with the conditions checking removed so the code is more readable:</p>
<p>jQuery(grid).navButtonAdd(nav,{buttonimg:"image.gif",caption:"Add",position:"first",title:"Add", onClickButton:function(){</p>
<p>&#160;&#160;&#160; if(&#160; CONDITIONS ARE RIGHT){<br />&#160;&#160;&#160; &#160;&#160;&#160; //Load the form but how ?<br />&#160;&#160;&#160; }else{</p>
<p>//Open a dialog to tell the user to select the necessary information first.</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; jQuery(#myDialog).dialog(&#39;open);<br />&#160;&#160;&#160; }<br />}&#160;&#160;&#160; <br />});</p></p>
]]></description>
        	        	<pubDate>Tue, 09 Jun 2009 16:17:39 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Cancel A Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7132</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7132</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Not sure, but I think it is better to use navButtonAdd and when the user click the icon for add/edit etc you should analyze the data and do what you want.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Jun 2009 07:51:06 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Cancel A Form Load</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7099</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cancel-a-form-load#p7099</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Quick question which I just can&#39;t seem to wrap my head around solving.</p>
<p>I have a combo-box above my grid control that needs to be populated before add/edit/del is clicked in the grid navigation bar.</p>
<p>I need to be able to cancel the load event and post a dialog indicating that they choose a value first.&#160; This would be similar to the "Select a row" dialog that occurs now but instead of requiring a row it would require a combo box outside the dialog box to not be null.</p>
<p>Any suggestions on where to do this ? I&#39;m currently using the beforeShowForm event to load a number of selects which depend on the non-grid related select having a non-null value.</p>
<p>Nathan</p></p>
]]></description>
        	        	<pubDate>Sun, 07 Jun 2009 22:33:26 +0300</pubDate>
        </item>
</channel>
</rss>