<?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: Reloading grid when having multiple tables related between themselves</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves</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/reloading-grid-when-having-multiple-tables-related-between-themselves/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p21006</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p21006</guid>
        	        	<description><![CDATA[<p>Hello OlegK!!</p>
</p>
<p>Indeed you were damn right!!! it was that <strong>loadonce:true</strong> the guilty of my issue eheheh</p>
<p>And now it works.</p>
<p>Thanks a lot again!</p>
</p>
<p>Ciao,</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Thu, 25 Nov 2010 19:53:57 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20993</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20993</guid>
        	        	<description><![CDATA[<p>Hello Luigi,</p>
<p>probably you have problem with reloading of grid because you use <strong>loadonce:true</strong>. See my old answers on the stackoverflow.com: <a href="http://stackoverflow.com/questions/3441839/jqgrid-reload-not-working/3442156#3442156" target="_blank">this</a> for example).</p>
<p>Moreover Luigi I don&#39;t give any suport of jqGrid. I am just a user of jqGrid. So if I found my time today to write an answer there are no garantee that I&#39;ll do this at morning. I hope you understand me.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 25 Nov 2010 11:10:45 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20992</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20992</guid>
        	        	<description><![CDATA[<p>No suggest about what to check to force reloading grid recalling the PHP in the url parameter about my little issue? (so that PHP would get back all complete data in the grid)</p>
</p>
<p>Thanks again</p>
<p>Ciao,</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Thu, 25 Nov 2010 09:57:22 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20964</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20964</guid>
        	        	<description><![CDATA[<p>HI Oleg!</p>
<p>First, thanks again for your answer. Actually I tried a little test, I reduced the code to minimal to check the functionality as:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8984' value='Select Code' data-codeid='sfcode8984' /></p>
<div class='sfcode' id='sfcode8984'>
<p>&#160;&#160;&#160; jQuery(document).ready(function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;var ids=0;<br />&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#datatableoffers").jqGrid({ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:"http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_dataoffers.php?table_name=vvi_offers&#38;q=1",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;ID&#39;,&#39;Codice&#39;,&#39;Aeroporto&#39;,&#39;Aeroporto&#39;,&#39;Paese&#39;,&#39;Paese&#39;,&#39;Localita&#39;,&#39;Categoria&#39;,&#39;Categoria&#39;,&#39;Struttura&#39;,&#39;Struttura&#39;,&#39;Titolo&#39;,&#39;Descrizione ridotta&#39;,&#39;Descrizione estesa&#39;,&#39;Descrizione quote&#39;,&#39;Appunti di viaggio&#39;,&#39;Note interne&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_id&#39;,index:&#39;offer_id&#39;,width:1,editable:false,hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_code&#39;,index:&#39;offer_code&#39;,width:60,editable:true,editoptions:{readonly:false,size:12}},&#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;{name:&#39;offer_ref_vvd_airports&#39;,index:&#39;offer_ref_vvd_airports&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:airports},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;airport_name&#39;,index:&#39;airport_name&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_states&#39;,index:&#39;offer_ref_vvd_states&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:states},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;state_name&#39;,index:&#39;state_name&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_place&#39;,index:&#39;offer_place&#39;,width:200,editable:true,editoptions:{readonly:false,size:100}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_categories&#39;,index:&#39;offer_ref_vvd_categories&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:categories},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;category_description&#39;,index:&#39;category_description&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_furnitures&#39;,index:&#39;offer_ref_vvd_furnitures&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:furnitures},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;furniture&#39;,index:&#39;furniture&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_title&#39;,index:&#39;offer_title&#39;,width:300,editable:true,editoptions:{readonly:false,size:300}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_tiny_descr&#39;,index:&#39;offer_tiny_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_long_descr&#39;,index:&#39;offer_long_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_quotes_descr&#39;,index:&#39;offer_quotes_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_travel_notes&#39;,index:&#39;offer_travel_notes&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_internal_notes&#39;,index:&#39;offer_internal_notes&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pageroffers&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;emptyrecords: &#39;Nessun pacchetto disponibile&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;furniture_name&#39;, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: "desc", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:"Pacchetti vacanze",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl:"http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?table_name=vvi_offers",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;shrinkToFit: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;autowidth: true<br />&#160;&#160; &#160;&#160;&#160; &#160;}).navGrid(&#39;#pageroffers&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;{height:750,width:800,top:30,left:100,reloadAfterSubmit:true}, // edit options <br />&#160;&#160; &#160;&#160;&#160; &#160;{height:750,width:800,top:30,left:100,reloadAfterSubmit:true}, // add options <br />&#160;&#160; &#160;&#160;&#160; &#160;{reloadAfterSubmit:true}, // del options <br />&#160;&#160; &#160;&#160;&#160; &#160;{}, // search options<br />&#160;&#160; &#160;&#160;&#160; &#160;{alerttext:&#39;E\&#39; necessario selezionare dapprima un pacchetto...&#39;} <br />&#160;&#160; &#160;&#160;&#160; &#160;);</p>
</div>
<p>and I put in the load_offers.php, mentioned in url parameter, a little test code to write in a txt output file the JSON result and I tried to add new record which it should re-call the load_offers.php to reload the grid and have the output txt test file. But the result I see is a partially filled record and no output txt test file which would mean only a thing: the load_offer.php file wasn&#39;t called to reload the grid.</p>
<p>Any idea? maybe it needs a different parameter to FORCE to re-call load_offers.php emptying previously the grid... if yes, which it is?</p>
</p>
<p>Thanks in advance for your support</p>
<p>Ciao,</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Tue, 23 Nov 2010 22:06:18 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20948</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20948</guid>
        	        	<description><![CDATA[<p>Hi Luigi,</p>
<p>It seems to me that you have problem in your server code. Firs from the screen-shorts which you posted one can see, that you has 1 from 0 pages. So the server returns wrong value for the total value in the JSON response from the server. And it is not the only error.</p>
<p>I have no idea how the server code looks like, but the sipmle SQL quers</p>
<p>SELECT OFFERS.ID, REF_AIRPORT_ID, NAME, LOCATION FROM OFFERS INNER JOIN AIRPORTS ON OFFERS.REF_AIRPORT_ID=AIRPORTS.ID</p>
<p>must give alwasy correct values back. Is you have caching problem and have to flush the changed values to the database or have another error... No idea... Nevertheless I would recommend you to search for the error in the server code.</p>
<p>Ciao<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 23 Nov 2010 11:01:36 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20947</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20947</guid>
        	        	<description><![CDATA[<p>Hello OlegK,</p>
</p>
<p>first thank you for your reply.</p>
<p>about second datagrid, that works well... once I select a record from first datagrid (datatableoffers) and I insert a new row in second datagrid (datatableprices)</p>
<p>But my problem is related in same datagrid where I tables related between them like:</p>
<p>table AIRPORTS&#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;&#160;&#160;&#160; table OFFERS</p>
<p>ID&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ID</p>
<p>NAME&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; REF_AIRPORT_ID</p>
<p>&#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;&#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; LOCATION</p>
</p>
<p>so in the first datagrid I put columns (some unnecessary hided) as: ID, REF_AIRPORT_ID, NAME, LOCATION and once I insert a new record in first datagrid I should get something like:</p>
<p>1,1,AMSTERDAM SCHIPHOL (AMS), New York</p>
<p>indeed I get:</p>
<p>1,1,,New York</p>
<p>as like when datagrid reloads, doesn&#39;t pick the name of the airport related the REF_AIRPORT_ID.</p>
<p>As screenshots I should get something like this:</p>
<p><a href="http://www.vacanze-viaggi.eu/screenshot2.JPG"><img src="http://www.vacanze-viaggi.eu/screenshot2.JPG" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>indeed I get:</p>
<p><a href="http://www.vacanze-viaggi.eu/screenshot1.JPG"><img src="http://www.vacanze-viaggi.eu/screenshot1.JPG" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>if it&#39;s more clear now, and anyone has a suggest, it would be appreciated</p>
<p>Thanks a lot</p>
<p>Ciao, Luigi</p>
]]></description>
        	        	<pubDate>Tue, 23 Nov 2010 02:19:15 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20940</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20940</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Your code is relatively long and bad formatted. You write that you have two grids. I suppose one table has id="datatableoffers" and another one id="datatableprices", but you don&#39;t include any definition of the second table.</p>
<p>The code which you posted use addfunc instead of just using of</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8490' value='Select Code' data-codeid='sfcode8490' /></p>
<div class='sfcode' id='sfcode8490'>editurl:&#39;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;#39" rel="nofollow" target="_blank"><a href="http://www.vacanze-viaggi.eu/w" rel="nofollow">http://www.vacanze-viaggi.eu/w</a>.....1&#038;#39</a>;</div>
<p>The verification of the data added (which do checkExistsData.php) can do your edit_dataoffers.php code and return an error HTTP code in case of error. As the data the error message can be returned. You can use additionally errorTextFormat event handler to decode/format the message returned by the server.</p>
<p>It is important what return your server after the adding a new row. It should return the id of the new row. If you will use as the add parameters</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9270' value='Select Code' data-codeid='sfcode9270' /></p>
<div class='sfcode' id='sfcode9270'>closeAfterAdd:true, reloadAfterSubmit:false</div>
<p>then the main grid will be not reloaded, the new row will be added to the main grid and the new row will be selected.</p>
<p>If you need to clear the "details" grid (the second grid) you can just use another datatype. Changing the <strong>datatype</strong> to <strong>&#39;local&#39;</strong></p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7589' value='Select Code' data-codeid='sfcode7589' /></p>
<div class='sfcode' id='sfcode7589'>jQuery(&#34;#datatableprices&#34;).setGridParam({ datatype: &#39;local&#39; }).trigger(&#39;reloadGrid&#39;);</div>
<p>will clear the table. By the way initially I would also use <strong>datatype</strong>:&#160;<strong>&#39;local&#39;</strong>&#160;in the definition of the jQuery("#datatableprices")&#160;because it is no row selected in the "main" grid at the beginning.</p>
<p>In the <strong>onSelectRow</strong> function you can set&#160;<span style="font-size: 13.8889px;"><strong>datatype: &#39;json&#39;</strong> additionally to the setting <strong>url</strong> and <strong>page:1</strong>.</span></p>
<p><span style="font-size: 13.8889px;">Best regards<br /><span style="font-size: 13.8889px;">Oleg&#160;</span></span></p></p>
]]></description>
        	        	<pubDate>Mon, 22 Nov 2010 14:32:33 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20936</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20936</guid>
        	        	<description><![CDATA[<p>Hello...</p>
<p>no one has maybe a possible suggest to check for this little issue explained in previous posts?...</p>
<p>By the way, in this case I&#39;m using XAMPP on windows platform.</p>
<p>Thanks a lot in advance.</p>
</p>
<p>Ciao,</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Mon, 22 Nov 2010 12:01:23 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20846</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20846</guid>
        	        	<description><![CDATA[<p>Hello again everyone,</p>
<p>I lately I tried even to avoid addfunc and editfunc functions, and to use editurl to see what would be the behavior if different and it&#39;s the same: I see the row just inserted partially, in the specific in auto reloading grid after submit it doesn&#39;t fill those fields which are related to other tables with their relative description. On the other hand, in both cases with addfunc/editfunc and without, if I select that row just inserted, grid would select another row! So I have to reload the complete page with CTRL+F5 to see all correctly.</p>
</p>
<p>Any directions would be really appreciated.... even to understand if it&#39;s a bug of 3.8 version (ah, I&#39;m actually using XAMPP on Windows)</p>
</p>
<p>Thanks in advance to everyone!</p>
<p>Ciao,</p>
<p>Luigi</p>
]]></description>
        	        	<pubDate>Tue, 16 Nov 2010 13:08:24 +0200</pubDate>
        </item>
        <item>
        	<title>Luigino on Reloading grid when having multiple tables related between themselves</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20816</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloading-grid-when-having-multiple-tables-related-between-themselves#p20816</guid>
        	        	<description><![CDATA[</p>
<p>Hello everyone,</p>
<p>I am using jqGrid 3.8 and when I add new records in a table which is related to other tables like:</p>
<p>TABLE A : ID, Field1, Field_Ref_ID_TABLE_B, Description</p>
<p>TABLE B: ID, Description</p>
<p>The issue I get is once I insert a new record and the grid reloads: I see new record but partially because it doesn&#39;t show data from other tables like it doesn&#39;t really empty the grid and re-call the php of the url related to loading data. I tried also to put inside addfunc the event afterComplete: function(&#8230;) { .trigger(&#39;reloadGrid&#39;);} but without success&#8230;.</p>
<p>Here it&#39;s the code&#8230;. any directions would be really appreciated&#8230;might be a little version bug because at least reloading, even partially, works&#8230;</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3873' value='Select Code' data-codeid='sfcode3873' /></p>
<div class='sfcode' id='sfcode3873'>
<p>jQuery(document).ready(function(){<br />//result = false;<br />var ids=0;<br />jQuery(&#34;#datatableoffers&#34;).jqGrid({ <br />&#160;&#160; &#160;url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_dataoffers.php?table_name=vvi_offers&#038;q=1&#038;Prime" rel="nofollow" target="_blank"><a href="http://www.vacanze-viaggi.eu/w" rel="nofollow">http://www.vacanze-viaggi.eu/w</a>.....#038;Prime</a>;,<br />&#160;&#160; &#160;datatype: &#39;json&#39;, <br />&#160;&#160; &#160;colNames:[&#39;ID&#39;,&#39;Codice&#39;,&#39;Aeroporto&#39;,&#39;Aeroporto&#39;,&#39;Paese&#39;,&#39;Paese&#39;,&#39;Localita&#39;,&#39;Categoria&#39;,&#39;Categoria&#39;,&#39;Struttura&#39;,&#39;Struttura&#39;,&#39;Titolo&#39;,&#39;Descrizione ridotta&#39;,&#39;Descrizione estesa&#39;,&#39;Descrizione quote&#39;,&#39;Appunti di viaggio&#39;,&#39;Note interne&#39;],<br />&#160;&#160; &#160;colModel:[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_id&#39;,index:&#39;offer_id&#39;,width:1,editable:false,hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_code&#39;,index:&#39;offer_code&#39;,width:60,editable:true,editoptions:{readonly:false,size:12}},&#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;{name:&#39;offer_ref_vvd_airports&#39;,index:&#39;offer_ref_vvd_airports&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:airports},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;airport_name&#39;,index:&#39;airport_name&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_states&#39;,index:&#39;offer_ref_vvd_states&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:states},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;state_name&#39;,index:&#39;state_name&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_place&#39;,index:&#39;offer_place&#39;,width:200,editable:true,editoptions:{readonly:false,size:100}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_categories&#39;,index:&#39;offer_ref_vvd_categories&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:categories},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;category_description&#39;,index:&#39;category_description&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_ref_vvd_furnitures&#39;,index:&#39;offer_ref_vvd_furnitures&#39;,width:1,hidden:true,editable:true,edittype:&#39;select&#39;,editoptions:{width:100,value:furnitures},editrules:{edithidden:true,required:true,number:true}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;furniture&#39;,index:&#39;furniture&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_title&#39;,index:&#39;offer_title&#39;,width:300,editable:true,editoptions:{readonly:false,size:300}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_tiny_descr&#39;,index:&#39;offer_tiny_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_long_descr&#39;,index:&#39;offer_long_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_quotes_descr&#39;,index:&#39;offer_quotes_descr&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_travel_notes&#39;,index:&#39;offer_travel_notes&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;offer_internal_notes&#39;,index:&#39;offer_internal_notes&#39;,width:500,editable:true,edittype:&#39;textarea&#39;,editoptions:{readonly:false,rows:3,cols:80}}<br />&#160;&#160; &#160;],<br />&#160;&#160; &#160;rowNum:10, <br />&#160;&#160; &#160;rowList:[10,20,30],<br />&#160;&#160; &#160;loadonce:true,<br />&#160;&#160; &#160;pager: &#39;#pageroffers&#39;, <br />&#160;&#160; &#160;emptyrecords: &#39;Nessun pacchetto disponibile&#39;,<br />&#160;&#160; &#160;sortname: &#39;furniture_name&#39;, <br />&#160;&#160; &#160;viewrecords: true, <br />&#160;&#160; &#160;sortorder: &#34;desc&#34;, <br />&#160;&#160; &#160;caption:&#34;Pacchetti vacanze&#34;,<br />&#160;&#160; &#160;editurl:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?table_name=vvi_offers&#038;quot" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?table_name=vvi_offers&#038;quot</a>;,<br />&#160;&#160; &#160;shrinkToFit: false,<br />&#160;&#160; &#160;autowidth: true,<br />&#160;&#160; &#160;onSelectRow: function(ids) { <br />&#160;&#160; &#160;&#160;&#160; &#160;if(ids==null) { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;ids=0; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(jQuery(&#34;#datatableprices&#34;).jqGrid(&#39;getGridParam&#39;,&#39;records&#39;)&#62;0) { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#datatableprices&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_subdata.php?q=1&#038;idm=&#34;+ids,page:1" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_subdata.php?q=1&#038;idm=&#34;+ids,page:1</a>})<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.trigger(&#39;reloadGrid&#39;); &#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;} <br />&#160;&#160; &#160;&#160;&#160; &#160;} else { <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#34;#datatableprices&#34;).jqGrid(&#39;setGridParam&#39;,{url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_subdata.php?q=1&#038;idm=&#34;+ids,page:1" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_subdata.php?q=1&#038;idm=&#34;+ids,page:1</a>}) <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.trigger(&#39;reloadGrid&#39;); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#pagergallery&#34;).photomanager(&#34;option&#34;,&#34;refid&#34;,ids);<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;<br />})<br />var grid = jQuery(&#34;#datatableoffers&#34;).navGrid(&#39;#pageroffers&#39;, // afterComplete:function(response, postdata, formid){jQuery(&#34;#datatableoffers&#34;).trigger(&#39;reloadGrid&#39;);}<br />{addfunc:function(){var result=$.ajax({url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/checkExistsData.php&#038;quot" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/checkExistsData.php&#038;quot</a>;,async:false}).responseText;if (result) grid.editGridRow(&#34;new&#34;,{height:750,width:800,top:30,left:100,url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;Prime" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;Prime</a>;,reloadAfterSubmit:true,closeOnEscape:true});},editfunc:function(){var id=jQuery(&#34;#datatableoffers&#34;).getGridParam(&#39;selrow&#39;);jQuery(&#34;#datatableoffers&#34;).editGridRow(id,{height:750,width:800,top:30,left:100,url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;id=&#34;+id,reloadAfterSubmit:true,closeOnEscape:true" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;id=&#34;+id,reloadAfterSubmit:true,closeOnEscape:true</a>});},delfunc:function(){var id=jQuery(&#34;#datatableoffers&#34;).getGridParam(&#39;selrow&#39;);jQuery(&#34;#datatableoffers&#34;).delGridRow(id,{url:&#34;<a href="http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;id=&#34;+id,afterComplete:function(response" rel="nofollow" target="_blank">http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/edit_dataoffers.php?q=1&#038;id=&#34;+id,afterComplete:function(response</a>, postdata){jQuery(&#34;#datatableprices&#34;).trigger(&#39;reloadGrid&#39;);$(&#34;#pagergallery&#34;).photomanager(&#34;option&#34;,&#34;refid&#34;,ids);},reloadAfterSubmit:true,closeOnEscape:true})},refresh:true,search:true}, //options <br />{height:495,width:670,top:100,left:50,reloadAfterSubmit:true}, // edit options <br />{height:495,width:670,top:100,left:50,reloadAfterSubmit:true}, // add options <br />{reloadAfterSubmit:true}, // del options <br />{}, // search options<br />{alerttext:&#39;Select first an offer&#8230;&#39;} <br />);<br />});</p>
</div>
<p>Or at least is there a way to force re-calling this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit562' value='Select Code' data-codeid='sfcode562' /></p>
<div class='sfcode' id='sfcode562'>
<p>url:"http://www.vacanze-viaggi.eu/wp-content/plugins/viaggivacanze/php/load_dataoffers.php?table_name=vvi_offers&#38;q=1&#8243;</p>
</div>
<p>when I am reloading the grid, so it would empty totally the grid and re-loading all the data, included that new record just inserted?</p>
</p>
<p>Thanks in advance to everyone!!!</p>
<p>Ciao</p>
<p>Luigi</p></p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 10:29:00 +0200</pubDate>
        </item>
</channel>
</rss>