<?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: Showing Data with jqgrid 3.6.1 and MVC</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc</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/showing-data-with-jqgrid-3-6-1-and-mvc/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mhoque on Showing Data with jqgrid 3.6.1 and MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16312</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16312</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>How look you response?</p>
<p>Best Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Tony</p>
<p>I have found the reason in&#160; a post here</p>
<p>/blog/?page_id=393/help/data-not-showing-c-asp-net-mvc/</p>
</p>
<p>This is an MVC 2 issues.&#160; Quote from the post</p>
<p><em>"I actually figured out what the problem was. I am using MVC2, with that I needed to add the following to my controller return statement<br />JsonRequestBehavior.AllowGet<br />so the return now looks like:<br />return Json(jsondata,JsonRequestBehavior.AllowGet); "</em></p>
<p><em>&#160;</em></p>
<p><em>&#160;</em></p>
<p>Thank you</p>
<p><em>&#160;</em></p>
]]></description>
        	        	<pubDate>Thu, 08 Apr 2010 16:50:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Showing Data with jqgrid 3.6.1 and MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16298</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16298</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How look you response?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 08 Apr 2010 12:58:33 +0300</pubDate>
        </item>
        <item>
        	<title>mhoque on Showing Data with jqgrid 3.6.1 and MVC</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16247</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/showing-data-with-jqgrid-3-6-1-and-mvc#p16247</guid>
        	        	<description><![CDATA[<p>I just started using jqgrid 3.6.1. all my Json and everything is fine. my jqgrid comes up with no data. I even created the JSON manually and didn&#39;t solve the issue. I used the same code with&#160;&#160;version 3.4 and worked just fine. &#160; I am using MVC 2. Below is my code for the page. Any help will be appreciated.</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160; GridMyFirstGrid.setupGrid($("#list"), $("#pager"), $("#noSearch"));</p>
<p>});</p>
<p>GridMyFirstGrid = {<br />&#160;&#160;&#160; setupGrid: function(grid, pager, search) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/DashBoard/GetUserItems/&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;ItemId&#39;, &#39;Name&#39;, &#39;Price&#39;, &#39;SKU&#39;, &#39;Amount Saved&#39;, &#39;Ready To Buy Code&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ItemId&#39;, index: &#39;ItemId&#39;, hidden: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Name&#39;, index: &#39;Name&#39;, editable: true, width: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Price&#39;, index: &#39;Price&#39;, editable: true, width: 460 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;SKU&#39;, index: &#39;SKU&#39;, editable: true, width: 100 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AmountSaved&#39;, index: &#39;AmountSaved&#39;, editable: true, width: 200 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ReadyToBuyCode&#39;, index: &#39;ReadyToBuyCode&#39;, hidden: true }<br />&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: pager,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; root: "Rows",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "Page",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "Total",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "Records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userdata: "UserData",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; id: "ItemId"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#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; rowList: [5, 10, 20, 50],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;../../Scripts/themes/coffee/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;My first grid&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; }<br />};<br />&#60;/script&#62;<br />&#60;table id="list" class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62;<br />&#60;div id="pager" class="scroll" style="text-align:center;"&#62;&#60;/div&#62;</p>
]]></description>
        	        	<pubDate>Tue, 06 Apr 2010 05:19:01 +0300</pubDate>
        </item>
</channel>
</rss>