<?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: Master / Detaail grid dilema</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema</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/master-detaail-grid-dilema/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>romaneduardo on Master / Detaail grid dilema</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p24850</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p24850</guid>
        	        	<description><![CDATA[<p>Solution. Using&#160; <strong>navButtonAdd</strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit5464' value='Select Code' data-codeid='sfcode5464' /></p>
<div class='sfcode' id='sfcode5464'>.navGrid(&#39;#detailpager&#39;,<br />{add:false,edit:false,del:false})<br />.navButtonAdd<br />(&#39;#detailpager&#39;,<br />{<br />position:&#34;first&#34;,<br />caption:&#34;&#34;,<br />title:&#34;Agregar&#34;,<br />buttonicon:&#34;ui-icon-plus&#34;,<br />onClickButton:<br />&#160;&#160;&#160; function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var rowID = $(&#34;#mastergrid&#34;).getGridParam(&#39;selrow&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if( rowID != null ) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#34;#detailgrid&#34;).jqGrid(&#39;editGridRow&#39;, &#34;new&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#34;detailedit.php?valor=&#34;+rowID,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; recreateForm: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; closeAfterAdd: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit:true<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else alert(&#34;Seleccione un elemento en tabla master&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />})</div>
]]></description>
        	        	<pubDate>Tue, 11 Oct 2011 05:48:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Master / Detaail grid dilema</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p11225</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p11225</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think that one possible solution is to have navigator buttons, but added with navButtonAdd. Here you can analyze if the master row is selected and prevent adding records.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 29 Oct 2009 03:34:55 +0200</pubDate>
        </item>
        <item>
        	<title>Mike27516 on Master / Detaail grid dilema</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p11151</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/master-detaail-grid-dilema#p11151</guid>
        	        	<description><![CDATA[<p>I have a Master /Detail grid combo (JQGrid 3.5.3). The detail grid has navigator buttons for adding and editing records. I want to prevent the user from trying to add detail records if no row is selected in the master grid. I would like to either trap the details grid&#39;s beforeShowFormEvent and cancel the add form from displaying.... OR just not have an add button displayed and then dynamically add the detail grid add button when a master row is selected. Unfortunately I don&#39;t know how to do either of these options. Any direction on either of these options is much appreciated.</p>
</p>
<p>Thanks,</p>
</p>
<p>Mike</p>
]]></description>
        	        	<pubDate>Tue, 27 Oct 2009 12:25:41 +0200</pubDate>
        </item>
</channel>
</rss>