<?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: Dynamic Edit / Add / Delete Caption on FormEdit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit</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/dynamic-edit-add-delete-caption-on-formedit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>BenRivera on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20743</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20743</guid>
        	        	<description><![CDATA[<p>Thiis ithe why I am looking to add data to the addCaption heading:</p>
<p>Grid_1 = Parent table, add, edit delete is available.</p>
<p>Grid_2 = Child Table, has edit and delete icon, but no add.&#160; Adding is done using Grid_3</p>
<p>Grid_3 = Large List of values with descriptions and other data.&#160;</p>
<p>On double click of a row in Grid_3, I check that a row is selected in Grid_1 and call Grid_2.jqGrid(&#39;editGridRow&#39;, "new",...) to add a new row.&#160; I have tried setting the addCaption in this call to display the description of the data key being added, but it doesn&#39;t do anything.&#160;</p>
<p>Since the data keys description in&#160;Grid_2 is not editable, it does not diplay in the form.&#160; So I want to display it in the heading.</p>
<p>Thanks for working with me on this,</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Thu, 11 Nov 2010 04:45:12 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20733</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20733</guid>
        	        	<description><![CDATA[<p>Hello Ben,</p>
<p>I not quite understand which text you want to place in Add dialog? If you want a static text you can use&#160;<span style="font-size: 13.8889px; white-space: pre;"><strong>addCaption</strong> parameter. If you know any rule to generate a title dynamically you can do all exactly like for the Edit dialog. You should just add parameters for the Add dialog as a <strong>navGrid</strong> parameter (see parameter <strong>prmAdd</strong> <a href="/jqgridwiki/doku.php?id=wiki:navigator#definition" target="_blank">here</a>).</span></p>
<p><span style="font-size: 13.8889px; white-space: pre;">Best regards<br />Oleg&#160;</span></p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 18:35:45 +0200</pubDate>
        </item>
        <item>
        	<title>BenRivera on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20720</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20720</guid>
        	        	<description><![CDATA[<p>Oleg, thanks for the example and code.&#160; It works perfectly for Edit and Delete.</p>
<p>I tried using the edit version for Add dialog, but it doesn&#39;t work.&#160; I looked at the grid.formedit.js and it is uses the same modalhead</p>
</p>
<p>Regards</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 02:19:34 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20718</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20718</guid>
        	        	<description><![CDATA[<p>Hello <strong>BenRivera</strong>,</p>
<p>I would recommend you to use beforeShowForm and afterclickPgButtons event handler to change the title of the edit dialog, because <a href="/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow" target="_blank">editCaption</a>&#160;not support functions as a value. I created a small <a href="http://www.ok-soft-gmbh.com/jqGrid/DynamicEditFormCapture.htm" target="_blank">demo</a> for you.</p>
<p>Exactly in the way you can use beforeShowForm for delete parameters</p>
<p>var title = $("#delhd"+grid[0].id+ " .ui-jqdialog-title");</p>
<p>instead of</p>
<p>var title = $("#edithd"+grid[0].id+ " .ui-jqdialog-title");</p>
<p>to find the title of the dialog.</p>
<p>Best regards<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 00:54:23 +0200</pubDate>
        </item>
        <item>
        	<title>BenRivera on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20716</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20716</guid>
        	        	<description><![CDATA[<blockquote>
<p>rmvenancio said:</p>
<p>About the second question you can do this :</p>
<p>Add the onSelectRow on the first grid</p>
<p>onSelectRow: function (ids) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#Detail").setGridParam()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .setCaption("New Caption")<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>I&#39;m trying to find a way to do the same you requested in point 1.</p>
</blockquote>
<hr />
<p>Yes, this works, I am currently do this, but that only works for the main grid Caption not the FormEdit Caption.</p>
<p>onSelectRow: function(rowid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (rowid != tabSelectedRowid){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tabSelectedRowid = rowid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#tabsdetail").jqGrid(&#39;setGridParam&#39;,{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <a href="/blog/&#34;profile_tabs_detail_data.php?id=&#34;+rowid" target="_blank">url:"profile_tabs_detail_data.php?id="+rowid</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page:1<br />&#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; jQuery("#tabsdetail").jqGrid(&#39;setCaption&#39;,"Tab Detail: "+ jQuery(this).getCell(rowid,&#39;dash_tab&#39;))<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Tue, 09 Nov 2010 22:42:06 +0200</pubDate>
        </item>
        <item>
        	<title>rmvenancio on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20705</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20705</guid>
        	        	<description><![CDATA[<p>About the second question you can do this :</p>
<p>Add the onSelectRow on the first grid</p>
<p>onSelectRow: function (ids) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#Detail").setGridParam()<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .setCaption("New Caption")<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .trigger(&#39;reloadGrid&#39;);<br />&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>I&#39;m trying to find a way to do the same you requested in point 1.</p>
]]></description>
        	        	<pubDate>Tue, 09 Nov 2010 14:11:48 +0200</pubDate>
        </item>
        <item>
        	<title>BenRivera on Dynamic Edit / Add / Delete Caption on FormEdit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20685</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/dynamic-edit-add-delete-caption-on-formedit#p20685</guid>
        	        	<description><![CDATA[<p>I am using a FormEdit dialog box with the Navigation bar icons.</p>
<ol>
<li>I would like the set the editCaption and delCaption to display data based on the row selected.</li>
<li>I am also using one grid to load data into another, I am passing data in editData array, but would like to set addCaption to display some of the data.</li>
</ol>
<p>Is this possible?&#160; Everythiing I have tried never changes the caption.</p>
</p>
<p>Thanks</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Sun, 07 Nov 2010 01:28:19 +0200</pubDate>
        </item>
</channel>
</rss>