<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using jqGrid with ASP.NET MVC: Finally, A Solution</title>
	<atom:link href="http://blogs.teamb.com/craigstuntz/2009/04/17/38229/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/</link>
	<description>C# • Entity Framework • Functional Programming • MVC • Web</description>
	<pubDate>Sun, 12 Feb 2012 04:44:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Using jqGrid with ASP.NET MVC &#124; Tuấn&#39;s blog</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-31871</link>
		<dc:creator>Using jqGrid with ASP.NET MVC &#124; Tuấn&#39;s blog</dc:creator>
		<pubDate>Thu, 21 Jul 2011 03:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-31871</guid>
		<description>[...] jqGrid with ASP.NET MVC: Introduction Using jqGrid with ASP.NET MVC: LINQ Extensions  Using jqGrid with ASP.NET MVC: Finally, A Solution  Using jqGrid with ASP.NET MVC: Search and Formatting  Using jqGrid with ASP.NET MVC: Deleting [...]</description>
		<content:encoded><![CDATA[<p>[...] jqGrid with ASP.NET MVC: Introduction Using jqGrid with ASP.NET MVC: LINQ Extensions  Using jqGrid with ASP.NET MVC: Finally, A Solution  Using jqGrid with ASP.NET MVC: Search and Formatting  Using jqGrid with ASP.NET MVC: Deleting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Stuntz</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-21238</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Fri, 17 Dec 2010 13:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-21238</guid>
		<description>Tim, it's not 3.8.2 that is the issue; it's the fact that I am using &lt;code&gt;repeatitems&lt;/code&gt; and you are not. I explained this option in the "LINQ Extensions" post. You must either change your &lt;code&gt;repeatitems&lt;/code&gt; setting or change the format of the data you are sending.</description>
		<content:encoded><![CDATA[<p>Tim, it&#8217;s not 3.8.2 that is the issue; it&#8217;s the fact that I am using <code>repeatitems</code> and you are not. I explained this option in the "LINQ Extensions" post. You must either change your <code>repeatitems</code> setting or change the format of the data you are sending.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-21231</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 17 Dec 2010 07:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-21231</guid>
		<description>Sorry for that...

The Grid gets json data but it doesn't display it.

I installed jqGrid 3.8.2. Maybe thats the Problem.

When i use the jqGrid withouth your great solution i pass json data in this format to the grid:

{"page":1,"records":2,"rows":[{"id":1,"cell":["1","Test","24ed76a3-3b15-4de2-95f4-e558932ea809", null]}],"total":1}

Your solution creates a json result like this:
{"Total":2,"Page":1,"Records":12,"Rows":[{"Titel":"Test local","GUID":"24ed76a3-3b15-4de2-95f4-e558932ea809","ReferenzNr":null},"UserData":null}

Regards,
Tim</description>
		<content:encoded><![CDATA[<p>Sorry for that&#8230;</p>
<p>The Grid gets json data but it doesn&#8217;t display it.</p>
<p>I installed jqGrid 3.8.2. Maybe thats the Problem.</p>
<p>When i use the jqGrid withouth your great solution i pass json data in this format to the grid:</p>
<p>{"page":1,"records":2,"rows":[{"id":1,"cell":["1","Test","24ed76a3-3b15-4de2-95f4-e558932ea809", null]}],"total":1}</p>
<p>Your solution creates a json result like this:<br />
{"Total":2,"Page":1,"Records":12,"Rows":[{"Titel":"Test local","GUID":"24ed76a3-3b15-4de2-95f4-e558932ea809","ReferenzNr":null},"UserData":null}</p>
<p>Regards,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Stuntz</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-21207</link>
		<dc:creator>Craig Stuntz</dc:creator>
		<pubDate>Thu, 16 Dec 2010 13:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-21207</guid>
		<description>Tim, that message means precisely what it says: You have to call OrderBy before anything (like PagedList) calls Skip. So sort your records!</description>
		<content:encoded><![CDATA[<p>Tim, that message means precisely what it says: You have to call OrderBy before anything (like PagedList) calls Skip. So sort your records!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-21205</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 16 Dec 2010 13:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-21205</guid>
		<description>Hi Craig,

thanks for your blog. It's very helpfull. But im having a problem.

I'm using EF4 and Linq to Entities to get data out of my sybase sql anywhere database. 

When i try to run your code im getting an error in PagedList.cs on line 82 with the message (translatet from german to english):

Method 'Skip' is only supported for sorted input in 'LINQ to Entities'. The method 'OrderBy' must be called before the method 'Skip'.

Do you have an idea?

Regards,
Tim</description>
		<content:encoded><![CDATA[<p>Hi Craig,</p>
<p>thanks for your blog. It&#8217;s very helpfull. But im having a problem.</p>
<p>I&#8217;m using EF4 and Linq to Entities to get data out of my sybase sql anywhere database. </p>
<p>When i try to run your code im getting an error in PagedList.cs on line 82 with the message (translatet from german to english):</p>
<p>Method &#8216;Skip&#8217; is only supported for sorted input in &#8216;LINQ to Entities&#8217;. The method &#8216;OrderBy&#8217; must be called before the method &#8216;Skip&#8217;.</p>
<p>Do you have an idea?</p>
<p>Regards,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herman</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-19668</link>
		<dc:creator>Herman</dc:creator>
		<pubDate>Fri, 29 Oct 2010 09:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-19668</guid>
		<description>problem of point 7. Solved.  

do like this: first line in masterpage
var baseUrl=''  

use this variable baseUrl in: jquery.jqrid.js like this: var pathtojsfiles = baseUrl + "Scripts/jqGridJs/";</description>
		<content:encoded><![CDATA[<p>problem of point 7. Solved.  </p>
<p>do like this: first line in masterpage<br />
var baseUrl=&#8221;  </p>
<p>use this variable baseUrl in: jquery.jqrid.js like this: var pathtojsfiles = baseUrl + "Scripts/jqGridJs/";</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herman</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-19667</link>
		<dc:creator>Herman</dc:creator>
		<pubDate>Fri, 29 Oct 2010 09:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-19667</guid>
		<description>Craig please comment on point 7. because I have the same problem if I use a link /Site/Test everything is Ok, if I use /Site/Test/Index the error occurs.</description>
		<content:encoded><![CDATA[<p>Craig please comment on point 7. because I have the same problem if I use a link /Site/Test everything is Ok, if I use /Site/Test/Index the error occurs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Rupprecht</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-18568</link>
		<dc:creator>Stefan Rupprecht</dc:creator>
		<pubDate>Sat, 25 Sep 2010 01:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-18568</guid>
		<description>Hi Phil,

Vou're obviously using ASP.NET MVC 2.0, which throws an exception when an action attempts to return JSON in response to a GET request. Adding "JsonRequestBehavior.AllowGet" as the last argument to the Json() call in the Home.Controller will solve the issue.</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>Vou&#8217;re obviously using ASP.NET MVC 2.0, which throws an exception when an action attempts to return JSON in response to a GET request. Adding "JsonRequestBehavior.AllowGet" as the last argument to the Json() call in the Home.Controller will solve the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-17358</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 19 Jul 2010 13:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-17358</guid>
		<description>Hey Craig,

Your code seems cool however in my Visual Web Developer 2010 Express it shows no rows! My OS is Windows 7 x64 Enterprise (if that helps…).

I’ve tried different solutions to get the data flowing into the grid like defining the model at runtime and creating a string representation but no luck. Also set this attribute, [AcceptVerbs(HttpVerbs.Get)], but didn’t get any results. Please let me know what I can do to get it to work, I’ll really like to develop my app in ASP.NET MVC.

Cheers,</description>
		<content:encoded><![CDATA[<p>Hey Craig,</p>
<p>Your code seems cool however in my Visual Web Developer 2010 Express it shows no rows! My OS is Windows 7 x64 Enterprise (if that helps…).</p>
<p>I’ve tried different solutions to get the data flowing into the grid like defining the model at runtime and creating a string representation but no luck. Also set this attribute, [AcceptVerbs(HttpVerbs.Get)], but didn’t get any results. Please let me know what I can do to get it to work, I’ll really like to develop my app in ASP.NET MVC.</p>
<p>Cheers,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hs0wkc</title>
		<link>http://blogs.teamb.com/craigstuntz/2009/04/17/38229/#comment-16292</link>
		<dc:creator>hs0wkc</dc:creator>
		<pubDate>Mon, 10 May 2010 07:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.teamb.com/craigstuntz/?p=38229#comment-16292</guid>
		<description>hi bhavin patel,
Change the code like this if you used ASP.NET MVC 2

return Json(model.ToJqGridData(page, rows, null, search, new[] { "IntProperty", "StringProperty", "DateProperty" }), JsonRequestBehavior.AllowGet);
        }

NOTE : HomeController.cs</description>
		<content:encoded><![CDATA[<p>hi bhavin patel,<br />
Change the code like this if you used ASP.NET MVC 2</p>
<p>return Json(model.ToJqGridData(page, rows, null, search, new[] { "IntProperty", "StringProperty", "DateProperty" }), JsonRequestBehavior.AllowGet);<br />
        }</p>
<p>NOTE : HomeController.cs</p>
]]></content:encoded>
	</item>
</channel>
</rss>

