<?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: Add another table field to jqGrid edit Dialog</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-another-table-field-to-jqgrid-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/add-another-table-field-to-jqgrid-edit-dialog/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>beryl_peng on Add another table field to jqGrid edit Dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-another-table-field-to-jqgrid-edit-dialog#p26210</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-another-table-field-to-jqgrid-edit-dialog#p26210</guid>
        	        	<description><![CDATA[<p>I am very new to jqgrid &#38; also jQuery, so hope to get some help from here. When we click the edit button at the navigator, the default edit dialog will show the fields which we set editable=true, but what if i want to add&#160;another table field?</p>
</p>
<table border="0">
<tbody>
<tr>
<td>Table Customer</td>
<td>Table CustomerBooking</td>
</tr>
<tr>
<td>CustomerId</td>
<td>BookingId</td>
</tr>
<tr>
<td>CustomerName</td>
<td>CustomerId</td>
</tr>
</tbody>
</table>
<p>Example: My grid will load the Table Customer (customer Id &#38; Name) but what i want is when i click edit, the edit dialog can show all Booking id related to this customer.</p>
<p>I tried to load the grid with&#160;joined SQL (SELECT * FROM Customer A, CustomerBooking B where A.CustomerId = B.CustomerId) with set BookingId (hidden: true), The grid load successfully, but when i click the row, it dont allow me to click on the row due to there are more than 1 row of CustomerId (the relationship is 1 to many, one customerId can have &#62; 1 BookingId).</p>
<p>Is there any way when i click on the row then upon the edit dialog load, only i submit another query to get all the BookingId? Or any example to change edit dialog? Cause i may need to show other information from another table related to this customer.</p>
</p>
<p>I have stucked here for a few days <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" />, anyone can advise?</p>
<p>Thanks in advance!</p>
<p>Many Many Thanks!</p>
]]></description>
        	        	<pubDate>Sat, 24 Mar 2012 07:32:54 +0200</pubDate>
        </item>
</channel>
</rss>