<?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: Grid not refreshing after using search function</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function</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/grid-not-refreshing-after-using-search-function/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Jim P on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18866</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18866</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>The code is way to big to post everything.</p>
<p>here&#39;s the css links which are in the heading section:</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="themes/jqModal.css" /&#62; <br />&#60;link rel="stylesheet" type="text/css" media="screen" href="../css/ui.jqgrid.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="../css/jquery.searchFilter.css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="../css/jquery-ui-1.7.2.custom.css" /&#62;<br />&#60;link rel="stylesheet" href="/pti/css/global.css" media="all" /&#62;<br />&#60;link rel="stylesheet" href="/pti/css/inside.css" media="all" /&#62;<br />&#60;link rel="stylesheet" type="text/css" href="../css/ddsmoothmenu.css" /&#62;</p>
<p>&#60;script type="text/javascript" src="jquery-1.4.2.min.js"&#62;&#60;/script&#62;</p>
</p>
<p>&#60;!--- html calling the grids ---&#62;</p>
<p>&#60;div id="search"&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160; &#160;&#60;div id="g1"&#62;<br />&#160;&#160;&#160; &#160;&#60;!--- top nav bar ---&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;div id="pager2" class="export"&#62;&#60;a href="ExportTo.cfm?typ=p&#38;amp;met=DumpSO&#38;amp;myTbl=&#60;cfoutput&#62;#session.sessionid#&#60;/cfoutput&#62;&#38;amp;listtyp=so&#38;amp;myDSN=Installer&#38;amp;OrdTyp=&#60;cfoutput&#62;#session.myGridSO_ShowType#&#60;/cfoutput&#62;&#38;amp;OpenShpd=O&#38;amp;sidx="&#62;&#60;img src="images/pdf.png" class="textmiddle" alt="Export to PDF"/&#62; To PDF&#60;/a&#62;&#38;nbsp;<br />&#160;&#160;&#160;&#160;&#160; &#60;a href="ExportTo.cfm?typ=e&#38;amp;met=DumpSO&#38;amp;myTbl=&#60;cfoutput&#62;#session.sessionid#&#60;/cfoutput&#62;&#38;amp;listtyp=so&#38;amp;myDSN=Installer&#38;amp;OrdTyp=&#60;cfoutput&#62;#session.myGridSO_ShowType#&#60;/cfoutput&#62;&#38;amp;OpenShpd=O"&#62;&#60;img src="images/icon-xls.png"&#160; class="textmiddle" alt="Excel Logo" /&#62; To Excel&#60;/a&#62;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#160;&#60;table id="solist_intl" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#160;&#60;div id="sopager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160; &#160;&#60;div&#62;&#38;nbsp;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160; &#60;div id="g2"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;div id="pager2" class="export"&#62;&#60;a href="ExportTo.cfm?typ=p&#38;amp;met=DumpIntlSHP&#38;amp;myTbl=&#60;cfoutput&#62;#session.sessionid#&#60;/cfoutput&#62;&#38;amp;listtyp=ishp&#38;amp;myDSN=Installer&#38;amp;DaysAgo=&#60;cfoutput&#62;#session.myGridSHP_ShipSince#&#60;/cfoutput&#62;&#38;amp;sidx="&#62;&#60;img src="images/pdf.png" class="textmiddle" alt="Export to PDF"/&#62; To PDF&#60;/a&#62;&#38;nbsp;<br />&#160;&#160;&#160;&#160;&#160; &#60;a href="ExportTo.cfm?typ=e&#38;amp;met=DumpIntlSHP&#38;amp;myTbl=&#60;cfoutput&#62;#session.sessionid#&#60;/cfoutput&#62;&#38;amp;listtyp=ishp&#38;amp;myDSN=Installer&#38;amp;DaysAgo=&#60;cfoutput&#62;#session.myGridSHP_ShipSince#&#60;/cfoutput&#62;&#38;amp;sidx="&#62;&#60;img src="images/icon-xls.png"&#160; class="textmiddle" alt="Excel Logo" /&#62; To Excel&#60;/a&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#160;&#60;table id="shplist" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#160;&#60;div id="shppager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;</p>
</p>
<p>&#60;!---&#160;&#160; Then at the bottom of the code all of the js except above jquery file.&#160;---&#62;</p>
<p>&#60;script src="jq-grid3.6.5/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jq-grid3.6.5/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="ddsmoothmenu.js"&#62;<br />/***********************************************<br />* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (<a href="http://www.dynamicdrive.com" rel="nofollow" target="_blank">http://www.dynamicdrive.com</a>", "Shipments", "width=600,height=550,toolbar=0,scrollbars=1, menubar=0, top=50,left=300, resizable=1");<br />&#160;&#160;&#160;&#160;&#160;};<br />&#160;&#160;&#160;&#160;&#160;if (carrierdata == "FEDERAL EXPRESS") {<br />&#160;&#160;&#160;&#160;&#160;&#160;window.open("http://www.fedex.com/Tracking?action=track&#38;language=english&#38;cntry_code=us&#38;mps=y&#38;tracknumbers=&#34;+cellcontent"+cellcontent, "Shipments", "width=600,height=550,toolbar=0,scrollbars=1, menubar=0, top=50,left=300, resizable=1");<br />&#160;&#160;&#160;&#160;&#160;};<br />&#160;&#160;&#160;&#160;&#160;if (carrierdata == "UNITED PARCEL SERVICE") {<br />&#160;&#160;&#160;&#160;&#160;&#160;window.open("http://wwwapps.ups.com/tracking/tracking.cgi?tracknum=&#34;+cellcontent+&#34;&#38;C=&#34;+carrierdata+&#34;&#38;Dat=&#34;+shipdate"+cellcontent+"&#38;C="+carrierdata+"&#38;Dat="+shipdate, "Shipments", "width=600,height=550,toolbar=0,scrollbars=1, menubar=0, top=50,left=300, resizable=1");<br />&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;// window.open("trackit.cfm?WB="+cellcontent+"&#38;C="+carrierdata+"&#38;Dat="+shipdate, "Shipments", "width=700,height=550,toolbar=0,scrollbars=1, menubar=0, top=50,left=500, resizable=1");<br />&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160; //&#160; {window.location.href = "trackit.cfm?WB="+cellcontent+"&#38;C="+carrierdata+"&#38;Dat="+shipdate;}&#160;&#160;<br />&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160;&#160;//Things to do when grid is finished loading<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridComplete:function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //&#160; Adjust grid to fill the screen, var gw used below see ******<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var gw = parseInt($("#shplist").getGridParam("width")); <br />&#160;&#160;&#160;&#160;// Hide the site name column per user settings <br />&#160;&#160;&#160;&#160;&#160;&#160;// Show the Site Name column per user settings &#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;var hidesite = &#60;cfoutput&#62;#session.myGridSHP_Site_Name#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;&#160;&#160;if(hidesite == 0){<br />&#160;&#160;&#160;&#160;&#160;&#160;$("#shplist").hideCol("shiptoname");<br />&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;// Show the Invoice No column per user settings<br />&#160;&#160;&#160;&#160;&#160;&#160;var hideinvoice = &#60;cfoutput&#62;#session.myGridshp_ponumber#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;&#160;&#160;if(hideinvoice == 0){<br />&#160;&#160;&#160;&#160;&#160;&#160;$("#shplist").hideCol("ponumber");<br />&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;// Show the Account Name column per user settings <br />&#160;&#160;&#160;&#160;&#160;&#160;var hideacctname = &#60;cfoutput&#62;#session.myGridSHP_Acct_Name#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;&#160;&#160;if(hideacctname == 0){<br />&#160;&#160;&#160;&#160;&#160;&#160;$("#shplist").hideCol("acct_name");<br />&#160;&#160;&#160;&#160;&#160; &#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;// Show the Account Email column per user settings <br />&#160;&#160;&#160;&#160;&#160;&#160;var hideacctemail = &#60;cfoutput&#62;#session.myGridSHP_Acct_Email#&#60;/cfoutput&#62;;<br />&#160;&#160;&#160;&#160;&#160;&#160;if(hideacctemail == 0){<br />&#160;&#160;&#160;&#160; &#160;&#160;$("#shplist").hideCol("acct_email");<br />&#160;&#160;&#160;&#160;&#160; &#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;// ****&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;$("#shplist").setGridWidth(gw-0.01,true);&#160;&#160; // reset the grid width &#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //We get the Userdata for the grid.<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var recorddata = $("#shplist").getUserData();<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //If the msg type is error, we do some CSS and change text color to red, otherwise its blue<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(recorddata.TYPE == "Error"){<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; $("#t_shplist").css("color","red")<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }else{<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; $("#t_shplist").css("color","blue")<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 />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Display the message in the toolbar<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#t_shplist").html(recorddata.MSG)<br />&#160;&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160;&#160;// this has a subgrid<br />&#160;&#160;&#160;&#160;subGrid: true, // make it a subgrid<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160;&#160;&#160;&#160; // we pass two parameters<br />&#160;&#160;&#160;&#160;&#160;&#160; // subgrid_id is a id of the div tag created within a table<br />&#160;&#160;&#160;&#160;&#160;&#160; // the row_id is the id of the row<br />&#160;&#160;&#160;&#160;// If we want to pass additional parameters to the url we can use<br />&#160;&#160;&#160;&#160;// the method getRowData(row_id) - which returns associative array in type name-value<br />&#160;&#160;&#160;&#160;&#160;&#160; // here we can easy construct the following<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var subgrid_table_id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var rowdata = jQuery("#subshplist").getRowData(row_id); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; subgrid_table_id = subgrid_id+"_t";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_id).html("&#60;table id=&#39;"+subgrid_table_id+"&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#"+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;<a href="/blog/&#34;Users.cfc?method=GetSubSHP&#38;q=2&#38;id=&#34;+row_id+&#34;&#38;myDSN=Installer&#38;sonumber=&#34;+rowdata.sonumber" target="_blank">url:"Users.cfc?method=GetSubSHP&#38;q=2&#38;id="+row_id+"&#38;myDSN=Installer&#38;sonumber="+rowdata.sonumber</a>,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;PAR Invoice No&#39;,&#39;Invoice Date&#39;,&#39;Invoice Amt&#39;,&#39;Status&#39;,&#39;Balance&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"invoiceno",index:"invoiceno",key:true, align: "center",width: 100<br />&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160;&#160;&#160;{name:"invoicedate",index:"invoicedate", align:"center",width: 120<br />&#160;&#160;&#160;&#160;&#160;,formatter:&#39;date&#39;, formatoptions:{srcformat: &#39;d/m/Y H:i:s&#39;,newformat: &#39;&#60;cfoutput&#62;#session.myGridDateFormat#&#60;/cfoutput&#62;&#39;}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"subtotal",index:"subtotal",align:"center",width: 80<br />&#160;&#160;&#160;&#160;&#160;,formatter:&#39;currency&#39;, formatoptions:{decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "$ "}<br />&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"var.mystatus",index:"var.mystatus",align:"center",width: 80},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:"var.mybal",index:"var.mybal",align:"center",width: 80<br />&#160;&#160;&#160;&#160;&#160;,formatter:&#39;currency&#39;, formatoptions:{decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "$ "}},<br />&#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; height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; //width: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; forceFit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160; scroll: true,<br />&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;themes/basic/images&#39;, //Image path for prev/next etc images<br />&#160;&#160;&#160;&#160;&#160;&#160; cellEdit: false,<br />&#160;&#160;&#160;&#160;&#160;&#160; afterInsertRow : function(rowid,rowdata,rowelem) {<br />&#160;&#160;&#160;&#160;&#160;&#160; $("#"+rowid+" td:eq(0)").css("color", "005D8C").css("text-decoration","underline").css("cursor","pointer");&#160; // change col 1 to note it&#39;s a link&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160; //&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Things to do when grid is finished loading<br />&#160; //&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete:function(){<br />//&#160;&#160;&#160;&#160;&#160;&#160;// Hide the site name column per user settings <br />//&#160;&#160;&#160;&#160;&#160;&#160;var hidesubsite = &#60;cfoutput&#62;#session.myGridSC_Site_Name#&#60;/cfoutput&#62;;<br />//&#160;&#160;&#160;&#160;&#160;&#160;if(hidesubsite == 1){<br />//&#160;&#160;&#160;&#160;&#160;&#160;$("#"+subgrid_table_id).hideCol("x_site_name");<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;<br />//&#160;&#160;&#160;&#160;&#160;&#160;},<br />//&#160;&#160;&#160;&#160;&#160; //alert (rowid,iCol,cellcontent); create links from these columns<br />&#160;&#160;&#160;&#160;onCellSelect: function(rowid,iCol,cellcontent){&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160; if (iCol == 0)<br />&#160;&#160;&#160;&#160;&#160;&#160; //{window.location.href = "sodetailprt.cfm?ThisInv="+cellcontent;}&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; window.open("sodetailprt.cfm?ThisInv="+cellcontent, "Sales Invoice", "width=980,height=550,toolbar=0,scrollbars=0, menubar=0, top=50,left=20, resizable=1");&#160;&#160;&#160;&#160; <br />&#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; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160; //imgpath: &#39;themes/green/images&#39;, //Image path for prev/next etc images,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;num&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160; //The JSON reader. This defines what the JSON data returned from the CFC should look like<br />&#160;&#160;&#160;&#160;&#160;jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;root: "ROWS",<br />&#160;&#160;&#160;&#160;&#160;page: "PAGE",<br />&#160;&#160;&#160;&#160;&#160;total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;records:"RECORDS",<br />&#160;&#160;&#160;&#160;&#160;cell: "",<br />&#160;&#160;&#160;&#160;&#160;id: "0",<br />&#160;&#160;&#160;&#160;&#160;subgrid: {root: "ROWS", repeatitems: true, cell: "",id:"0"}<br />&#160;&#160;&#160;&#160;&#160;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: "asc"<br />&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;})<br />&#160;&#160;&#160;&#160;&#160;&#160; },&#160;&#160;&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;//&#160;&#160; Below is for the main grid&#160;&#160;&#160;<br />&#160;&#160;&#160;&#160;//The JSON reader. This defines what the JSON data returned from the CFC should look like<br />&#160;&#160;&#160;&#160;jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;root: "ROWS",<br />&#160;&#160;&#160;&#160;&#160;page: "PAGE",<br />&#160;&#160;&#160;&#160;&#160;total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;records:"RECORDS",<br />&#160;&#160;&#160;&#160;&#160;userdata: "USERDATA",<br />&#160;&#160;&#160;&#160;&#160;cell: "",<br />&#160;&#160;&#160;&#160;&#160;id: "0",<br />&#160;&#160;&#160;&#160;&#160;subgrid: {root: "ROWS", repeatitems: true, cell: "",id:"0"}<br />&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;);&#160;&#160;<br />&#160;&#160;&#160;$.extend($.jgrid.search,<br />&#160;&#160;&#160;&#160;{caption:"Filter",<br />&#160;&#160;&#160;&#160;&#160;&#160; Find:&#39;Search&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; width:&#39;400&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160; checkInput:false,<br />&#160;&#160;&#160;&#160;&#160;&#160; top:200,<br />&#160;&#160;&#160;&#160;&#160;&#160; left:400,<br />&#160;&#160;&#160;&#160;&#160;&#160; sopt: [&#39;eq&#39;,&#39;ne&#39;,&#39;lt&#39;,&#39;le&#39;,&#39;gt&#39;,&#39;ge&#39;,&#39;bw&#39;,&#39;cn&#39;]&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;<br />&#160;&#160;&#160;$("#shplist").navGrid("#shppager",{edit:false,add:false,del:false,searchtext:"Filter"})<br />&#160;&#160; <br />&#160;&#160;&#160; // END OF shplist - SALES ORDERS SHIPPED<br />&#160;&#160;&#160;&#160;&#160;&#160; //&#160;&#160; below are part of the master grid layout <br />&#160;&#160;&#160; <br />&#160;&#160;}&#160; //&#160; required<br />&#160;)&#160; // required&#160;&#160;&#160; <br />&#160;&#60;/script&#62;</p></p>
]]></description>
        	        	<pubDate>Thu, 29 Jul 2010 21:57:04 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18839</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18839</guid>
        	        	<description><![CDATA[<p>Hi Jim!</p>
<p>If you want that somebody help you to find an error in your code, you should post the code. The best is a full code example which reproduce your problem.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 28 Jul 2010 16:50:44 +0300</pubDate>
        </item>
        <item>
        	<title>Jim P on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18838</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18838</guid>
        	        	<description><![CDATA[<p>I already&#160;link the css:</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="js/jqgrid/css/jquery.searchFilter.css" /&#62;</p>
<p>The error I&#39;m getting in Firebug is:</p>
<div class="errorTitle focusRow subLogRow ">this.indexOf is not a function</div>
<div class="errorSourceBox errorSource-show focusRow subLogRow "><a class="errorSource a11yFocus " target="_blank">Ext={};window["undefined"]=window["und... Date()).getTime()-this.getTime())}; </a></div>
<div class="errorSourceBox errorSource-show focusRow subLogRow ">in the js file:&#160;&#160; ext-yui-adapter.js</div>
<div class="errorSourceBox errorSource-show focusRow subLogRow ">I&#39;m not sure what is pulling in that file.&#160; Below are the three js files that I have in my file:</div>
<p>&#60;script type="text/javascript" src="jquery-1.4.2.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="jq-grid3.6.5/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jq-grid3.6.5/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Wed, 28 Jul 2010 16:09:33 +0300</pubDate>
        </item>
        <item>
        	<title>yandaomin on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18728</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18728</guid>
        	        	<description><![CDATA[<p>Hi Jim:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; I don&#39;t know your server used which lanaguage. I get the demo use php.</p>
<p>your server application already receive your transfered parameters, include &#8220;_search&#8221;ã€&#8220;searchField&#8221;ã€&#8220;searchString&#8221;ã€&#8220;searchOper&#8221;.</p>
<p>such as :$_REQUEST[&#39;_search&#39;];$_REQUEST[&#39;searchField&#39;];$_REQUEST[&#39;searchString&#39;];$_REQUEST[&#39;searchOper&#39;];</p>
<p>if you already get these parameters, you must addcording this condition to return the data to client(such IE explore). And you must pay attention to your data type. json or xml or custom data.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; the client get the data and show it in jqgrid.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; I advice you to check the server code whether is working normal.</p></p>
]]></description>
        	        	<pubDate>Thu, 22 Jul 2010 06:10:00 +0300</pubDate>
        </item>
        <item>
        	<title>bs_pk on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18725</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18725</guid>
        	        	<description><![CDATA[<p>Add</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="js/jqgrid/css/jquery.searchFilter.css" /&#62;</p>
]]></description>
        	        	<pubDate>Wed, 21 Jul 2010 23:33:30 +0300</pubDate>
        </item>
        <item>
        	<title>Jim P on Grid not refreshing after using search function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18722</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-not-refreshing-after-using-search-function#p18722</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I&#39;m running V 3.6.5 of the grid, upgraded from earlier version.&#160; If I use the modal search at the bottom of the grid it works. But if I use the reset on the search box or close the search box out the grid doesn&#39;t reload.&#160; If I use the grid reload icon on the bottom of the grid it doesn&#39;t work after I use the grid search.</p>
<p>I need to do a page refresh to get the data reloaded.</p>
<p>These are the js files I&#39;m pulling in:</p>
<p>&#60;script type="text/javascript" src="jquery-1.4.2.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="js3-5/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jq-grid3.6.5/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jq-grid3.6.5/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>Am I missing a required file?</p>
<p>Thanks,&#160; Jim</p></p>
]]></description>
        	        	<pubDate>Wed, 21 Jul 2010 20:37:19 +0300</pubDate>
        </item>
</channel>
</rss>