<?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: Gray div and empty grid...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid</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/gray-div-and-empty-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Gray div and empty grid...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20641</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20641</guid>
        	        	<description><![CDATA[<p>I recommend you to read <a href="/jqgridwiki/doku.php?id=wiki:retrieving_data#json_data" target="_blank">documentation</a> about preparing of JSON data on the server. Currently you use a mix between different ways. To be able to display the data prepared in the form you should add "cell." prefix to all jsonmap values:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1092' value='Select Code' data-codeid='sfcode1092' /></p>
<div class='sfcode' id='sfcode1092'>colModel: [<br />&#160;&#160; &#160;{ name: &#39;id&#39;, index: &#39;id&#39;, width: 55, jsonmap: &#34;cell.id&#34; },<br />&#160;&#160; &#160;{ name: &#39;email&#39;, index: &#39;email&#39;, width: 90, jsonmap: &#34;cell.email&#34; },<br />&#160;&#160; &#160;{ name: &#39;nombre&#39;, index: &#39;nombre&#39;, width: 80, align: &#39;right&#39;, jsonmap: &#34;cell.nombre&#34; },<br />&#160;&#160; &#160;{ name: &#39;mensaje&#39;, index: &#39;mensaje&#39;, width: 80, align: &#39;right&#39;, jsonmap: &#34;cell.mensaje&#34; },<br />&#160;&#160; &#160;{ name: &#39;respondido&#39;, index: &#39;respondido&#39;, width: 80, align: &#39;right&#39;, jsonmap: &#34;cell.respondido&#34; },<br />&#160;&#160; &#160;{ name: &#39;fecha&#39;, index: &#39;fecha&#39;, width: 150, sortable: true, jsonmap: &#34;cell.fecha&#34; }<br />],</div>
<p>&#160;</p>
<p><span style="font-size: 13.8889px;">and include additional parameter <strong>jsonReader: { repeatitems: false }</strong>. But after all the changes you will see not full data send from the server because the second line contains&#160;</span></p>
<p>{"id":"2","email":"hhhh","<strong><span style="text-decoration: underline;">nom bre</span></strong>":"jjj","mensaje":"kkk","respondido":"0","<span style="text-decoration: underline;"><strong>fecha </strong></span>":"2010-11-02"}</p>
<p>instead of</p>
<p>{"id":"2","email":"hhhh","nombre":"jjj","mensaje":"kkk","respondido":"0","fecha":"2010-11-02"}</p>
<p>I don&#39;t recommend you to do manual serialization to JSON data any time. Currently there are standard methods for the purpose.</p>
<p><span style="font-size: 13.8889px;">Best regards<br />Oleg</span></p>
]]></description>
        	        	<pubDate>Wed, 03 Nov 2010 12:08:41 +0200</pubDate>
        </item>
        <item>
        	<title>Rbn_3D on Gray div and empty grid...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20637</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20637</guid>
        	        	<description><![CDATA[<p>The overlay div was a problem with a missing css, it&#39;s fixed, but the grid are still empty, the rows are rendered ok, but whitout any text...</p></p>
]]></description>
        	        	<pubDate>Wed, 03 Nov 2010 01:05:12 +0200</pubDate>
        </item>
        <item>
        	<title>Rbn_3D on Gray div and empty grid...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20636</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/gray-div-and-empty-grid#p20636</guid>
        	        	<description><![CDATA[<p>Hi, I&#39;m trying to populate my grid using json, managed by php. The json response is ok, I see it in firebug. But it looks like loading, the overlay div never dissapears, and the grid is empty. (I don&#39;t receive javascript errors)</p>
<p>I&#39;m using the lastest version (3.8.1)</p>
</p>
<p>My javascript code:</p>
</p>
<blockquote>
<p>&#60;script type="text/javascript"&#62;<br />$(document).ready(function(){<br />&#160; $("#grid_recibidos").jqGrid({<br />&#160;&#160;&#160; url:&#39;admin/json_grid.php?q=grid_recibidos&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160; colNames:[&#39;ID&#39;,&#39;E-mail&#39;, &#39;Nombre&#39;,&#39;Mensaje&#39;,&#39;Respondido&#39;,&#39;Fecha&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:55, jsonmap:"id"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;email&#39;, index:&#39;email&#39;, width:90, jsonmap:"email"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;nombre&#39;, index:&#39;nombre&#39;, width:80, align:&#39;right&#39;, jsonmap:"nombre"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;mensaje&#39;, index:&#39;mensaje&#39;, width:80, align:&#39;right&#39;, jsonmap:"mensaje"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;respondido&#39;, index:&#39;respondido&#39;, width:80, align:&#39;right&#39;, jsonmap:"respondido"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;fecha&#39;, index:&#39;fecha&#39;, width:150, sortable:true, jsonmap:"fecha"} <br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#grid_recibidos_pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;fecha&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; caption: &#39;Mensajes recibidos&#39;<br />&#160; }); <br />}); <br />&#60;/script&#62;</p>
</blockquote>
<p>And the json response:</p>
</p>
<blockquote>
<p>{"page":1,"total":1,"records":2,"rows":[{"id":0,"cell":{"id":"1","email":"rgsrh","nombre":   "sdgh","mensaje":"stdfjh","respondido":"0","fecha"   :"2010-11-02"}},{"id":1,"cell":{"id":"2","email":"hhhh","nom   bre":"jjj","mensaje":"kkk","respondido":"0","fecha  ":"2010-11-02"}}]}</p>
</p>
</blockquote>
<p>Any ideas?? Thanks</p>
]]></description>
        	        	<pubDate>Wed, 03 Nov 2010 00:42:56 +0200</pubDate>
        </item>
</channel>
</rss>