<?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: Blank Grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/blank-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/blank-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>centrium on Blank Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8422</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8422</guid>
        	        	<description><![CDATA[<p>Update:</p>
</p>
<p>I finally managed to get the grid to render, I didnt realise the order that the jsgrid.js and locale.js files needed to be put in a specific order, therefore by putting locale infront of jsgrid it appears to be working.</p>
<p>Tony, thanks again for pointing those commas out to me, they obviously were going to be a problem 🙂</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 08:16:08 +0300</pubDate>
        </item>
        <item>
        	<title>centrium on Blank Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8420</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8420</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
<p>Thanks for the suggestion, not sure how I missed these but I did. <img class="spSmiley" style="margin:0" title="Embarassed" src="/blog/wp-content/forum-smileys/sf-embarassed.gif" alt="Embarassed" /></p>
</p>
<p>I have cleared these up but it is still complaining about a $.jgrid.StripHTML error. <img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 07:54:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Blank Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8416</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8416</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Correct first these errors and try:</p>
<p>colModel:[{name:&#39;Id&#39;,index:&#39;Id&#39;,width:250},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;AnnualLeave&#39;,index:&#39;AnnualLeave&#39;,width:250},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;KnownEmissions&#39;,index:&#39;KnownEmissions&#39;,width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;CommutingDays&#39;,index:&#39;CommutingDays&#39;,width:100}, <strong>&#60;----- Error</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]</p>
<p>You shoulds not have this here:</p>
<p>.....</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: &#8220;Commuting History&#8221;,<br />&#160;&#160;&#160; &#160;&#160;&#160; width:&#160; 600,<br />&#160;&#160;&#160; &#160;&#160;&#160; height: 200, <strong>&#60;---------- This too</strong><br />&#160;&#160;&#160; });</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 06:11:19 +0300</pubDate>
        </item>
        <item>
        	<title>centrium on Blank Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8397</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/blank-grid#p8397</guid>
        	        	<description><![CDATA[<p>Hi Guys</p>
<p>I really hope someone can point me out please?</p>
<p>I am trying to bind a json response from a ASP.Net2 Webservice however I am having very little success, I have the following code, which I have seen from another forum post that the guy managed to get to work. What it is doing is going out to the webservice to get a response, on success use the addJSONData to add it to the grid. However what is happening is that I am getting a $.jqGrid.stripHTML error and nothing is being bound to the grid.</p>
<p>The JSON response I am getting from the webservice is</p>
<div class="netInfoResponseText netInfoText ">
<pre><code>{"d":{"__type":"jqGridData","total":"1","page":"1","records":"1","rows":[{"id":"1","cell":["45","5","140"</code><code>]},{"id":"2","cell":["45","5","140"]},{"id":"3","cell":["45","5","140"]}]}}<br /><br />When I run this through an online parse it looks fine, the only thing I feel it could be is that jqGrid does not<br />know what to do with the __type field. Is this a correct assumption? The rest of the response<br />seems to match what the specification says.<br /><br />I have tried to manually use this with jsonstring and jsonstr params, but I get a $.jqgrid.parse error then.<br /><br />I feel all the pieces are in place, but something isnt quite correct, I&#39;m not interested in paging the data, so just want<br />something to display my data.<br /><br />Any help would be appreciated.<br /><br /><br /><br /><br /></code></pre>
</div>
<p>$("#history").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; datatype: function(){$.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "EmissionsDataHandler.asmx/LoadUserTest",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: JSON.stringify({username:"Test"}),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: "POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; contentType: "application/json; charset=utf-8",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; complete: function(jsondata, stat) {<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; if (stat == "success") {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; data = JSON.parse(jsondata.responseText).d<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#history")[0].addJSONData(data)<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; }<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; });<br />&#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; ,<br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;ID&#39;, &#39;Annual Leave&#39;, &#39;Known Emissions&#39;,&#39;Commuting Days&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel:[{name:&#39;Id&#39;,index:&#39;Id&#39;,width:250},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;AnnualLeave&#39;,index:&#39;AnnualLeave&#39;,width:250},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;KnownEmissions&#39;,index:&#39;KnownEmissions&#39;,width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;CommutingDays&#39;,index:&#39;CommutingDays&#39;,width:100},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: "Commuting History",<br />&#160;&#160;&#160; &#160;&#160;&#160; width:&#160; 600,<br />&#160;&#160;&#160; &#160;&#160;&#160; height: 200,<br />&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Mon, 10 Aug 2009 04:59:06 +0300</pubDate>
        </item>
</channel>
</rss>