<?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: JQgrid inside JDIALOG not fetshing data on field change...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change</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/jqgrid-inside-jdialog-not-fetshing-data-on-field-change/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>sirshurf on JQgrid inside JDIALOG not fetshing data on field change...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p12666</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p12666</guid>
        	        	<description><![CDATA[<p>Tnanks, but since I dont have a load issue, I desided on a different option...</p>
</p>
<p>I am creating the JQGRID&#160;always, inside the closed Dialog, and only reloading it dynamicly...</p>
]]></description>
        	        	<pubDate>Wed, 02 Dec 2009 17:01:14 +0200</pubDate>
        </item>
        <item>
        	<title>tony on JQgrid inside JDIALOG not fetshing data on field change...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p10496</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p10496</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You will need to call GridUnload method before constructing the grid. Something like:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2898' value='Select Code' data-codeid='sfcode2898' /></p>
<div class='sfcode' id='sfcode2898'>
<p>function myfunction()</p>
<p>{</p>
<p>....</p>
<p>jQuery.("#list22").GridUnload();</p>
<p>jQuery.("#list22").jqGrid({...});</p>
<p>jQuery("#modal").dialog("open");</p>
<p>}</p>
</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 07 Oct 2009 02:54:57 +0300</pubDate>
        </item>
        <item>
        	<title>sirshurf on JQgrid inside JDIALOG not fetshing data on field change...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p10472</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-inside-jdialog-not-fetshing-data-on-field-change#p10472</guid>
        	        	<description><![CDATA[<p>Hi all....</p>
</p>
<p>I have a problem...</p>
</p>
<p>I have a JQGRID inside UI.DIALOG, the Grid is filled with JSON from URL that have a dinamic value in it filled from an input.</p>
<p>The first time the JQGRID is called all is fine and I am getting my data, but the second time with a different value I am getting the data from previouce call (no refresh in the middle...)</p>
</p>
<p>Here is my JS</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7512' value='Select Code' data-codeid='sfcode7512' /></p>
<div class='sfcode' id='sfcode7512'>function jsDialogOpen2(){<br />&#160;&#160;&#160; //alert(&#39;CustomerAddresses.php?customerNumber=&#39;+$("#CustomerNum").val());<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; //var table = document.getElementById("list22");<br />&#160;&#160;&#160; //for(var i = table.rows.length - 1; i &#62; 0; i--)<br />&#160;&#160;&#160; //{&#160;&#160;&#160; <br />&#160;&#160;&#160; //&#160;&#160;&#160; table.deleteRow(i);<br />&#160;&#160;&#160; //}<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; <br />&#160;&#160;&#160; gridimgpath = "../styles/images";<br />&#160;&#160;&#160; jQuery("#list22").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;CustomerAddresses.php?customerNumber=&#39;+$("#CustomerNum").val(),&#160; //call CustomerAddresses.php to fill the jQuery<br />&#160;&#160;&#160; &#160;&#160;&#160; mtype: &#39;GET&#39;,&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; height: 250,&#160;&#160;&#160;&#160; //table<br />&#160;&#160;&#160; &#160;&#160;&#160; fadeIn: 400,<br />&#160;&#160;&#160; &#160;&#160;&#160; cache: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; rownumbers: true, //view row numbers<br />&#160;&#160;&#160; &#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:10,&#160; //limit record in grid<br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[10,20,30,40,50],<br />&#160;&#160;&#160; &#160;&#160;&#160; //scroll: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; //scrollrows: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; shrinkToFit: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Name&#39;,&#39;Address 1&#39;,&#39;Address 2&#39;, &#39;City&#39;, &#39;State&#39;,&#39;Zip&#39;,&#39;Country Code&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1NME&#39;,index:&#39;C1NME&#39;, width:140},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1AD1&#39;,index:&#39;C1AD1&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1AD2&#39;,index:&#39;C1AD2&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1CITY&#39;,index:&#39;C1CITY&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1STAT&#39;,index:&#39;C1STAT&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1ZIP&#39;,index:&#39;C1ZIP&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;C1CTR&#39;,index:&#39;C1CTR&#39;, width:140,align:"right"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager22&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: gridimgpath,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;onSelectRow: function(id) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#shipToName").val($("#list22").getCell(id,"C1NME"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToAddressLine1").val($("#list22").getCell(id,"C1AD1"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToAddressLine2").val($("#list22").getCell(id,"C1AD2"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToCity").val($("#list22").getCell(id,"C1CITY"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToState").val($("#list22").getCell(id,"C1STAT"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToZip").val($("#list22").getCell(id,"C1ZIP"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#ShipToCountryCode").val($("#list22").getCell(id,"C1CTR"));<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#modal2&#39;).dialog(&#39;close&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160; jsonReader : { root: &#39;rows&#39;, page: &#39;page&#39;, total: &#39;total&#39; , records: &#39;records&#39; }<br />&#160; });<br />&#160; $(&#39;#modal2&#39;).dialog(&#39;open&#39;);<br />&#160; <br />&#160;&#160; <br />}</div>
</p>
<p>on my PHP I have:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7578' value='Select Code' data-codeid='sfcode7578' /></p>
<div class='sfcode' id='sfcode7578'>&#160;&#160;&#160; header ( &#39;Expires: Mon, 26 Jul 1997 05:00:00 GMT&#39; );<br />&#160;&#160;&#160; header ( &#39;Last-Modified: &#39; . gmdate ( &#39;D, d M Y H:i:s&#39; ) . &#39; GMT&#39; );<br />&#160;&#160;&#160; header ( &#39;Cache-Control: no-store, no-cache, must-revalidate&#39; );<br />&#160;&#160;&#160; header ( &#39;Cache-Control: post-check=0, pre-check=0&#39;, false );<br />&#160;&#160;&#160; header ( &#39;Pragma: no-cache&#39; );</div>
<p>so no caching here too...</p>
</p>
<p>Please help...</p>
]]></description>
        	        	<pubDate>Tue, 06 Oct 2009 09:58:22 +0300</pubDate>
        </item>
</channel>
</rss>