<?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: Problem with JQGrid Array Data - clientSide</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside</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/problem-with-jqgrid-array-data-clientside/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem with JQGrid Array Data - clientSide</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18985</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18985</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The 3.8 has a checking for this mistake.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 05 Aug 2010 15:53:55 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Problem with JQGrid Array Data - clientSide</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18808</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18808</guid>
        	        	<description><![CDATA[<p>I posted the answer on&#160;<a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://stackoverflow.com/questions/3308256/problem-with-jqgrid-array-data-clientside/3330350#3330350&#39;);" href="http://stackoverflow.com/questions/3308256/problem-with-jqgrid-array-data-clientside/3330350#3330350" target="_blank"></a><a href="http://stackoverflow.com/quest" rel="nofollow" target="_blank">http://stackoverflow.com/quest</a>.....50#3330350: you should replace</p>
<pre class="prettyprint"> &#60;div id="ResultGrid"&#62;&#160; &#160; &#160; &#160; &#160; &#160; &#60;div id="ResultPager"&#62;&#60;/div&#62;&#160; &#160; &#160; &#160; &#60;/div&#62;</pre>
<p>to</p>
<pre class="prettyprint"> &#60;table id="ResultGrid"&#62;&#60;/<span style="font-size: 13.8889px; ">table</span>&#62;<br /><span style="font-size: 13.8889px; "> &#60;div id="ResultPager"&#62;&#60;/div&#62;</span></pre>
<p><span style="font-size: 13.8889px; ">Best regards<br />Oleg&#160;</span></p>
]]></description>
        	        	<pubDate>Sun, 25 Jul 2010 21:04:41 +0300</pubDate>
        </item>
        <item>
        	<title>Laurenz on Problem with JQGrid Array Data - clientSide</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18742</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-jqgrid-array-data-clientside#p18742</guid>
        	        	<description><![CDATA[<p>I&#39;m using Google Maps&#39; local search, to find businesses in the area of an specific address. The results will be intercepted and should be displayed in a JQGrid table. I would like to use JQGrid&#39;s "Array Data" to insert the results locally into the Grid. At this time I have the following code:</p>
<pre class="prettyprint">&#160; &#60;script type="text/javascript"&#62;<br />var map = null;<br />&#160; &#160; var geocoder = null;<br /><br />&#160; &#160; function initialize() {<br />&#160; &#160; &#160; &#160; /* Initialize Google Maps */<br />&#160; &#160; &#160; if (GBrowserIsCompatible()) {<br />&#160; &#160; &#160; &#160; map = new GMap2(document.getElementById("map"));<br />&#160; &#160; &#160; &#160; map.setCenter(new GLatLng(50.786916, 6.101360), 16);<br />&#160; &#160; &#160; &#160; //map.setUIToDefault();<br />&#160; &#160; &#160; &#160; var customUI = map.getDefaultUI();<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; customUI.controls.scalecontrol = false;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; map.setUI(customUI);<br />&#160; &#160; &#160; &#160; var options = {<br />&#160; &#160; &#160; &#160; &#160; &#160; onSearchCompleteCallback:function(searcher){<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var resultcontent = &#39;&#39;;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (searcher.results &#38;&#38; searcher.results.length &#62; 0) {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; for (var i = 0; i &#60; searcher.results.length; i++) {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var result = searcher.results[i];<br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Split Address-Lines into Street and No<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var TempString = result.addressLines[0];<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var StreetLine = TempString.split(/b[0-9]/);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Split Address-Lines to get Zipcode<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; TempString = result.addressLines[1];<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var CityLine = TempString.split(/b[^0-9]/);<br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Construct the Data Array<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var InputData = "{Firma:""+result.titleNoFormatting+"", Strasse:""+StreetLine[0]+"", Hausnummer:""+StreetLine[1]+"", Postleitzahl:""+CityLine[0]+"", Ort:""+result.city+"", Telefonnummer:""+result.phoneNumbers[0].number+""}"; <br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; alert(InputData);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Outputs for example: {Firma:"Lukull Pizza Service GbR", Strasse:"J&#252;licher Stra&#223;e ", Hausnummer:"6", Postleitzahl:"52070", Ort:"AACHEN", Telefonnummer:"0241 9010080"}<br /><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // Apply Data to Grid<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; jQuery("#ResultGrid").addRowData(i, InputData);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; };<br />&#160; &#160; &#160; &#160; localSearch = new google.maps.LocalSearch(options);<br />&#160; &#160; &#160; &#160; map.addControl(localSearch);<br />&#160; &#160; &#160; &#160; map.removeControl(GScaleControl);<br /><br />&#160; &#160; &#160; &#160; geocoder = new GClientGeocoder();<br />&#160; &#160; &#160; &#160; $("#map").hide("fast");<br />&#160; &#160; &#160; }<br />&#160; &#160; } &#160; <br />&#160; &#160; function showAddress(address, CompleteAdd) {<br />&#160; &#160; &#160; // Gets an address from database to pinpoint the location<br />&#160; &#160; &#160; if (geocoder) {<br />&#160; &#160; &#160; &#160; geocoder.getLatLng(<br />&#160; &#160; &#160; &#160; &#160; address,<br />&#160; &#160; &#160; &#160; &#160; function(point) {<br />&#160; &#160; &#160; &#160; &#160; &#160; if (!point) {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; alert(address + " not found");<br />&#160; &#160; &#160; &#160; &#160; &#160; } else {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; map.setCenter(point, 16);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; var marker = new GMarker(point);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; map.addOverlay(marker);<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; marker.openInfoWindowHtml(CompleteAdd);<br />&#160; &#160; &#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; &#160; }<br />&#160; &#160; &#160; &#160; );<br />&#160; &#160; &#160; }<br />&#160; &#160; &#160; $("#map").show("fast");<br />&#160; &#160; }<br />&#160; &#160; &#160; &#160; &#160;$("#ResultGrid")&#160; &#160; &#160; &#160; &#160; &#160; .jqGrid({<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; colNames:[&#39;ID&#39;, &#39;Firma&#39;, &#39;Strasse&#39;, &#39;Hausnummer&#39;, &#39;Postleitzahl&#39;, &#39;Ort&#39;, &#39;Telefonnummer&#39;],<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; colModel:[<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;ID&#39;, index:&#39;ID&#39;, width:55, editable:false, searchable:false},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Nachname&#39;, index:&#39;Nachname&#39;, width:150, editable:false, searchable:false},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Strasse&#39;, index:&#39;Strasse&#39;, width:150, editable:false, searchable:false},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Hausnummer&#39;, index:&#39;Hausnummer&#39;, width:150, editable:false, searchable:false, sorttype:&#39;int&#39;},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Postleitzahl&#39;, index:&#39;Postleitzahl&#39;, width:150, editable:false, searchable:false, sorttype:&#39;int&#39;},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Ort&#39;, index:&#39;Ort&#39;, width:150, editable:false, searchable:false},<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {name:&#39;Telefonnummer&#39;, index:&#39;Telefonnummer&#39;, width:150, editable:false, searchable:false}<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ],<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; datatype: &#39;clientSide&#39;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //editurl:&#39;Edit.php&#39;,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; height: 240,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; multiselect: true,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; pager:&#39;#ResultPager&#39;<br />&#160; &#160; &#160; &#160; &#160; &#160; })<br />&#160; &#160; &#160; &#160; &#160; &#160; .navGrid(&#39;#ResultPager&#39;, {view:false, edit:false, add:false, del:false, search:false, refresh:false} )<br />&#160; &#160; &#160; &#160; &#160; &#160; .navButtonAdd(&#39;#ResultPager&#39;, {title:"Adresse in Addressbuch speichern", buttonicon:"ui-icon-disk", caption:"In Adressbuch speichern", onClickButton:function(){<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //This method should save the selected addresses to the database<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }}) &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; &#160; &#160; &#160;});<br />&#160; &#160; &#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body onload="initialize()" onunload="GUnload()"&#62;<br />&#160; &#160; &#60;div class="main" align="center"&#62;<br />&#160; &#160; &#160; &#160; &#60;table id="MyGrid"&#62;&#60;/table&#62;<br />&#160; &#160; &#160; &#160; &#60;div id="pager"&#62;&#60;/div&#62; &#160; &#160; &#160;<br />&#160; &#160; &#160; &#160; &#60;div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable" style="height: 150px" id="Dialog"&#62;&#60;/div&#62;<br />&#160; &#160; &#160; &#160; &#60;div id="map" style="width: 850px; height:450px; padding:10px; font-size: medium; color:#853805; background-color:#FFE8CF;"&#62;&#60;/div&#62;<br />&#160; &#160; &#160; &#160; &#60;br/&#62;<br /><br />&#160; &#160; &#160; &#160; &#60;div id="ResultGrid"&#62;<br />&#160; &#160; &#160; &#160; &#160; &#160; &#60;div id="ResultPager"&#62;&#60;/div&#62;<br />&#160; &#160; &#160; &#160; &#60;/div&#62;<br />&#160; &#160; &#60;/div&#62;<table style="height: 18px;" border="0" width="16"><tbody><tr><td class="votecell"></td><td class="postcell"></td></tr></tbody></table><p>If a Search is completed and the onSearchCompleteCallback function is called I get this error in firebug:</p><p><input type='button' class='sfcodeselect' name='sfselectit7348' value='Select Code' data-codeid='sfcode7348' /></p><div class='sfcode' id='sfcode7348'>t.rows is undefined<br /><a onclick=&#34;&#34;&#34;javascript:pageTracker._trackPageview(&#39;/outbound/article/http://localhost/jQuery_Adressbuch/js/jquery.jqGrid.min.js&#39;);&#34;&#34;&#34; rel=&#34;&#34;&#34;nofollow&#34;&#34;&#34; href=&#34;/blog/&#34;/blog/&#34;http:/localhost/jQuery_Adressbuch/js/jquery.jqGrid.min.js&#34;&#34;&#34; target=&#34;&#34;_blank&#34;&#34; target="_blank">http://localhost/jQuery_Adress.....rid.min.js</a><br />Line 123</div><br /><p>I can&#39;t find any solution for this problem.</p><p>Does anyone know more about this error or about using local data arrays with JQGrid?</p><br /><p>- Excuse my english -</p></pre>
]]></description>
        	        	<pubDate>Thu, 22 Jul 2010 15:28:56 +0300</pubDate>
        </item>
</channel>
</rss>