<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MvcContrib Ajax Sorting and Paging with jQuery</title>
	<atom:link href="http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/</link>
	<description></description>
	<lastBuildDate>Wed, 11 Nov 2009 15:11:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: nathaniel engelsen</title>
		<link>http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/comment-page-1/#comment-93</link>
		<dc:creator>nathaniel engelsen</dc:creator>
		<pubDate>Thu, 03 Sep 2009 16:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://nathanielengelsen.com/?p=132#comment-93</guid>
		<description>Interesting approach, Paul.  I&#039;m afraid that as it is now the jquery plugin wouldn&#039;t help you achieve this.  Basically what we&#039;re doing is taking HTML and putting it into the &quot;#awesome_grid&quot; DIV element.  It needs to retrieve the grid rendered in HTML from somewhere, and it uses a partial for it.

The instructions for rendering the HTML from the grid need to exist on the server somewhere, and the partial view has these instructions.  It needs to be re-rendered every time you sort and page, so it&#039;s important that these server-side instructions be situated on the server so that the ASP.Net engine can merge your data with these instructions and generate the HTML.  

The downside with having everything in one .ASPX page is that you&#039;re going to run into trouble re-processing only part of it.  I can envision using an old-school UpdatePanel perhaps, but that&#039;s definitely outside of the current capabilities of the MvcAjax plugin.

I suggest having partial grids (an MvcAjax grid view, if you will) so that the server is working on bite sized chunks of code anyway. This&#039;ll limit the bandwidth and server resources to the absolute minimum.</description>
		<content:encoded><![CDATA[<p>Interesting approach, Paul.  I&#8217;m afraid that as it is now the jquery plugin wouldn&#8217;t help you achieve this.  Basically what we&#8217;re doing is taking HTML and putting it into the &#8220;#awesome_grid&#8221; DIV element.  It needs to retrieve the grid rendered in HTML from somewhere, and it uses a partial for it.</p>
<p>The instructions for rendering the HTML from the grid need to exist on the server somewhere, and the partial view has these instructions.  It needs to be re-rendered every time you sort and page, so it&#8217;s important that these server-side instructions be situated on the server so that the ASP.Net engine can merge your data with these instructions and generate the HTML.  </p>
<p>The downside with having everything in one .ASPX page is that you&#8217;re going to run into trouble re-processing only part of it.  I can envision using an old-school UpdatePanel perhaps, but that&#8217;s definitely outside of the current capabilities of the MvcAjax plugin.</p>
<p>I suggest having partial grids (an MvcAjax grid view, if you will) so that the server is working on bite sized chunks of code anyway. This&#8217;ll limit the bandwidth and server resources to the absolute minimum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/comment-page-1/#comment-92</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 03 Sep 2009 11:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://nathanielengelsen.com/?p=132#comment-92</guid>
		<description>Thanks, I&#039;ve got it working now, and it works really well. The old RTFM story eh? 

How would I go about altering it so that all the html/javascript code all sits in the aspx page? We have a lot of tabular data that we need to display on our site, and I would prefer to have it all contained in one aspx, rather than creating a partial for each of them.

I&#039;m not sure how I would need to alter this line if I remove the PeepsGrid partial.
$(&quot;#awesome_grid&quot;).mvcajax(&quot;/Grid/Sort/&quot;, &quot;PeepsGrid&quot;, {});</description>
		<content:encoded><![CDATA[<p>Thanks, I&#8217;ve got it working now, and it works really well. The old RTFM story eh? </p>
<p>How would I go about altering it so that all the html/javascript code all sits in the aspx page? We have a lot of tabular data that we need to display on our site, and I would prefer to have it all contained in one aspx, rather than creating a partial for each of them.</p>
<p>I&#8217;m not sure how I would need to alter this line if I remove the PeepsGrid partial.<br />
$(&#8220;#awesome_grid&#8221;).mvcajax(&#8220;/Grid/Sort/&#8221;, &#8220;PeepsGrid&#8221;, {});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathaniel engelsen</title>
		<link>http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/comment-page-1/#comment-89</link>
		<dc:creator>nathaniel engelsen</dc:creator>
		<pubDate>Wed, 02 Sep 2009 11:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://nathanielengelsen.com/?p=132#comment-89</guid>
		<description>The sample at http://mvcajax.codeplex.com/ isn&#039;t working for you?  What error are you getting?

Make sure you read the readme.txt, and modify the .js file appropriate to match the routes you&#039;re using.</description>
		<content:encoded><![CDATA[<p>The sample at <a href="http://mvcajax.codeplex.com/" rel="nofollow">http://mvcajax.codeplex.com/</a> isn&#8217;t working for you?  What error are you getting?</p>
<p>Make sure you read the readme.txt, and modify the .js file appropriate to match the routes you&#8217;re using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://nathanielengelsen.com/2009/07/mvccontrib-ajax-sorting-and-paging-with-jquery/comment-page-1/#comment-88</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Wed, 02 Sep 2009 10:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://nathanielengelsen.com/?p=132#comment-88</guid>
		<description>I was quite interested to see how you&#039;ve done the sorting using the MvcContrib Grid as this is something I&#039;ve been trying to include in my project. Unfortunately it looks like the sample project that you have here doesnt work properly. Is there a more complete sample I could try?</description>
		<content:encoded><![CDATA[<p>I was quite interested to see how you&#8217;ve done the sorting using the MvcContrib Grid as this is something I&#8217;ve been trying to include in my project. Unfortunately it looks like the sample project that you have here doesnt work properly. Is there a more complete sample I could try?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

