<?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: Easily build powerful client-side AJAX paging, using jQuery</title>
	<atom:link href="http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-55874</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 21 Dec 2011 22:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-55874</guid>
		<description>I&#039;ve assumed a fixed number of pages here for simplicity. Assuming you get that data to the client-side somehow, you might do something like this to add numbered links under the table:

&lt;pre lang=&quot;javascript&quot;&gt;for (var i = 0; i &lt; totalPages; i++) {
  $(&#039;&lt;a&gt;&#039;, {
    href: &#039;#&#039;,
    text: i + 1,
    &#039;class&#039;: &#039;paging&#039;
  }).appendTo(&#039;#Container&#039;);
}

$(&#039;a.paging&#039;).live(&#039;click&#039;, function(evt) {
  // Prevent the link&#039;s default browser action.
  evt.preventDefault();

  // Call DisplayRSSTable with the page number from the link&#039;s text.
  DisplayRSSTable($(this).text());
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve assumed a fixed number of pages here for simplicity. Assuming you get that data to the client-side somehow, you might do something like this to add numbered links under the table:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> totalPages<span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;a&gt;'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
    href<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#'</span><span style="color: #339933;">,</span>
    text<span style="color: #339933;">:</span> i <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
    <span style="color: #3366CC;">'class'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'paging'</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#Container'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.paging'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'click'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>evt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// Prevent the link's default browser action.</span>
  evt.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #006600; font-style: italic;">// Call DisplayRSSTable with the page number from the link's text.</span>
  DisplayRSSTable<span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-55794</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 21 Dec 2011 15:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-55794</guid>
		<description>Hi Dave

This is just an amazing article - I wonder why I first came across it now. I am new to jQuery, so do you have any idea of how to add paging numbers - e.g. something like:

Previous 1 2 3 4 5 6 7 8 9 10 ... Next

in C# I would do something like this:
rowCount = rowCount / pageSize + (rowCount % pageSize != 0 ? 1 : 0);</description>
		<content:encoded><![CDATA[<p>Hi Dave</p>
<p>This is just an amazing article &#8211; I wonder why I first came across it now. I am new to jQuery, so do you have any idea of how to add paging numbers &#8211; e.g. something like:</p>
<p>Previous 1 2 3 4 5 6 7 8 9 10 &#8230; Next</p>
<p>in C# I would do something like this:<br />
rowCount = rowCount / pageSize + (rowCount % pageSize != 0 ? 1 : 0);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sri</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-50134</link>
		<dc:creator>sri</dc:creator>
		<pubDate>Tue, 29 Nov 2011 19:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-50134</guid>
		<description>Hi Dave,

I am using the following code

$(&quot;#btnSaveQry&quot;).click(function (e) {
        var query = $(&quot;#txtQueryBox&quot;).val();
        $.ajax({
            type: &quot;POST&quot;,
            url: &quot;SteamTools.asmx/getRecord&quot;,
            data: &quot;{&#039;strSqlQuery&#039;: &#039;&quot; + query + &quot;&#039;}&quot;,
            contentType: &quot;application/json; charset=utf-8&quot;,
            dataType: &quot;json&quot;,
            success: function (msg) {
                if (msg.d != &quot;&quot;) {
                    var again = true;
                    while (again == true) {
                        var answer = prompt(&quot;Please enter a name for your query&quot;, &quot;&quot;);
                        if ($.trim(answer) != &quot;&quot;) {
                            $(&quot;#myHiddenElement&quot;).val(answer);
                            again = false;
                        }
                        else {
                            if (answer == null) {
                                return false;
                            }
                            alert(&quot;Query name required&quot;);
                            again = true;
                        }
                    }
                    return true;
                }
                else {
                    alert(&quot;Invalid query. Please make sure the query being saved is a valid SQL query&quot;);
                    e.preventDefault();
                    return false;
                }
            },
            error: function () {
                alert(&quot;Invalid query. Please make sure the query being saved is a valid SQL query&quot;);
                e.preventDefault();
                return false;
            }
        });
       
    });

Protected Sub btnSaveQry_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSaveQry.Click
        If Session.Item(&quot;Pin:&quot;) Is Nothing Then
            Try
                Dim fullID As String = HttpContext.Current.User.Identity.Name
                fullID = fullID.Substring(fullID.LastIndexOf(&quot;\&quot;) + 1)
                Session.Add(&quot;Pin:&quot;, fullID)
            Catch
                ClientScript.RegisterStartupScript(Me.GetType(), &quot;noSession&quot;, SteamTools.MBox( _
                &quot;Session timed out. Please go back to the STEAM page and click the &#039;Admin&#039; button.&quot;))
                Response.Redirect(&quot;default.aspx&quot;)
                Return
            End Try
        End If

        Try            
            &#039;check if the name has already been used by this user (can&#039;t have duplicate names by the same user)
            Dim dr As SqlDataReader = SteamDB.getRecordSet(&quot;SELECT Query_Name FROM Steam_Queries WHERE PIN=&quot; &amp; Session.Item(&quot;Pin:&quot;), pubStrReqConn)
            While dr.Read
                If SteamTools.DecodeQuotes(dr.Item(&quot;Query_Name&quot;)).ToUpper = myHiddenElement.Value.ToUpper Then
                    ClientScript.RegisterStartupScript(Me.GetType(), &quot;sameQryName&quot;, SteamTools.MBox( _
                    &quot;You already have a query saved under this name. Please choose a different name&quot;))
                    dr.Close()
                    Return
                End If
            End While
            dr.Close()
            SteamDB.saveRecord(&quot;INSERT INTO Steam_Queries (PIN,Query_Name,Query) VALUES (&#039;&quot; &amp; Session.Item(&quot;Pin:&quot;) &amp; &quot;&#039;,&#039;&quot; &amp; SteamTools.EncodeQuotes(myHiddenElement.Value) &amp; &quot;&#039;,&#039;&quot; &amp; SteamTools.EncodeQuotes(txtQueryBox.Text) &amp; &quot;&#039;)&quot;, pubStrReqConn)
            SteamDB.addToLog(Session.Item(&quot;Pin:&quot;), False, &quot;Saved a query&quot;, pubStrReqConn)
            ClientScript.RegisterStartupScript(Me.GetType(), &quot;savedQry&quot;, SteamTools.MBox( _
            &quot;Query saved successfully&quot;))
            fillQueryList()
            btnQry_Click(sender, e)
        Catch ex As SqlException
            ClientScript.RegisterStartupScript(Me.GetType(), &quot;errorQry&quot;, SteamTools.MBox( _
            &quot;Error saving query&quot;))
            SteamDB.addToLog(Session.Item(&quot;Pin:&quot;), True, &quot;Error saving query. &quot; &amp; ex.Message, pubStrReqConn)
            Return
        End Try
    End Sub

The issue is the server click is executed first than teh success function of ajax call. How to execute the ajax Success function and then the server click event.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I am using the following code</p>
<p>$(&#8220;#btnSaveQry&#8221;).click(function (e) {<br />
        var query = $(&#8220;#txtQueryBox&#8221;).val();<br />
        $.ajax({<br />
            type: &#8220;POST&#8221;,<br />
            url: &#8220;SteamTools.asmx/getRecord&#8221;,<br />
            data: &#8220;{&#8216;strSqlQuery&#8217;: &#8216;&#8221; + query + &#8220;&#8216;}&#8221;,<br />
            contentType: &#8220;application/json; charset=utf-8&#8243;,<br />
            dataType: &#8220;json&#8221;,<br />
            success: function (msg) {<br />
                if (msg.d != &#8220;&#8221;) {<br />
                    var again = true;<br />
                    while (again == true) {<br />
                        var answer = prompt(&#8220;Please enter a name for your query&#8221;, &#8220;&#8221;);<br />
                        if ($.trim(answer) != &#8220;&#8221;) {<br />
                            $(&#8220;#myHiddenElement&#8221;).val(answer);<br />
                            again = false;<br />
                        }<br />
                        else {<br />
                            if (answer == null) {<br />
                                return false;<br />
                            }<br />
                            alert(&#8220;Query name required&#8221;);<br />
                            again = true;<br />
                        }<br />
                    }<br />
                    return true;<br />
                }<br />
                else {<br />
                    alert(&#8220;Invalid query. Please make sure the query being saved is a valid SQL query&#8221;);<br />
                    e.preventDefault();<br />
                    return false;<br />
                }<br />
            },<br />
            error: function () {<br />
                alert(&#8220;Invalid query. Please make sure the query being saved is a valid SQL query&#8221;);<br />
                e.preventDefault();<br />
                return false;<br />
            }<br />
        });</p>
<p>    });</p>
<p>Protected Sub btnSaveQry_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSaveQry.Click<br />
        If Session.Item(&#8220;Pin:&#8221;) Is Nothing Then<br />
            Try<br />
                Dim fullID As String = HttpContext.Current.User.Identity.Name<br />
                fullID = fullID.Substring(fullID.LastIndexOf(&#8220;\&#8221;) + 1)<br />
                Session.Add(&#8220;Pin:&#8221;, fullID)<br />
            Catch<br />
                ClientScript.RegisterStartupScript(Me.GetType(), &#8220;noSession&#8221;, SteamTools.MBox( _<br />
                &#8220;Session timed out. Please go back to the STEAM page and click the &#8216;Admin&#8217; button.&#8221;))<br />
                Response.Redirect(&#8220;default.aspx&#8221;)<br />
                Return<br />
            End Try<br />
        End If</p>
<p>        Try<br />
            &#8216;check if the name has already been used by this user (can&#8217;t have duplicate names by the same user)<br />
            Dim dr As SqlDataReader = SteamDB.getRecordSet(&#8220;SELECT Query_Name FROM Steam_Queries WHERE PIN=&#8221; &amp; Session.Item(&#8220;Pin:&#8221;), pubStrReqConn)<br />
            While dr.Read<br />
                If SteamTools.DecodeQuotes(dr.Item(&#8220;Query_Name&#8221;)).ToUpper = myHiddenElement.Value.ToUpper Then<br />
                    ClientScript.RegisterStartupScript(Me.GetType(), &#8220;sameQryName&#8221;, SteamTools.MBox( _<br />
                    &#8220;You already have a query saved under this name. Please choose a different name&#8221;))<br />
                    dr.Close()<br />
                    Return<br />
                End If<br />
            End While<br />
            dr.Close()<br />
            SteamDB.saveRecord(&#8220;INSERT INTO Steam_Queries (PIN,Query_Name,Query) VALUES (&#8216;&#8221; &amp; Session.Item(&#8220;Pin:&#8221;) &amp; &#8220;&#8216;,&#8217;&#8221; &amp; SteamTools.EncodeQuotes(myHiddenElement.Value) &amp; &#8220;&#8216;,&#8217;&#8221; &amp; SteamTools.EncodeQuotes(txtQueryBox.Text) &amp; &#8220;&#8216;)&#8221;, pubStrReqConn)<br />
            SteamDB.addToLog(Session.Item(&#8220;Pin:&#8221;), False, &#8220;Saved a query&#8221;, pubStrReqConn)<br />
            ClientScript.RegisterStartupScript(Me.GetType(), &#8220;savedQry&#8221;, SteamTools.MBox( _<br />
            &#8220;Query saved successfully&#8221;))<br />
            fillQueryList()<br />
            btnQry_Click(sender, e)<br />
        Catch ex As SqlException<br />
            ClientScript.RegisterStartupScript(Me.GetType(), &#8220;errorQry&#8221;, SteamTools.MBox( _<br />
            &#8220;Error saving query&#8221;))<br />
            SteamDB.addToLog(Session.Item(&#8220;Pin:&#8221;), True, &#8220;Error saving query. &#8221; &amp; ex.Message, pubStrReqConn)<br />
            Return<br />
        End Try<br />
    End Sub</p>
<p>The issue is the server click is executed first than teh success function of ajax call. How to execute the ajax Success function and then the server click event.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple Asp.net Jquery Ajax paging &#171; .notes</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-42610</link>
		<dc:creator>Simple Asp.net Jquery Ajax paging &#171; .notes</dc:creator>
		<pubDate>Wed, 23 Mar 2011 00:55:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-42610</guid>
		<description>[...] Asp.net Jquery Ajax&#160;paging  Following a great post on Encosia here&#8217;s a an ajax powered repeater, that uses JTemplates, with paging and the chance of [...]</description>
		<content:encoded><![CDATA[<p>[...] Asp.net Jquery Ajax&nbsp;paging  Following a great post on Encosia here&#8217;s a an ajax powered repeater, that uses JTemplates, with paging and the chance of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visoft, Inc. Blogs &#124; Microsoft Announces Visual Studio 2010 and .NET 4.0</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-42489</link>
		<dc:creator>Visoft, Inc. Blogs &#124; Microsoft Announces Visual Studio 2010 and .NET 4.0</dc:creator>
		<pubDate>Mon, 14 Mar 2011 18:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-42489</guid>
		<description>[...] that were bundled as part of the release.  ASP.NET developers are starting to move more and more towards using things like jQuery.  This doesn&#8217;t mean that most of us ASP.NET developers are [...]</description>
		<content:encoded><![CDATA[<p>[...] that were bundled as part of the release.  ASP.NET developers are starting to move more and more towards using things like jQuery.  This doesn&#8217;t mean that most of us ASP.NET developers are [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-40143</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 20 Oct 2010 18:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-40143</guid>
		<description>The &lt;code&gt;{ filter_data: false }&lt;/code&gt; option to processTemplateURL (as seen in the example above) prevents jTemplates from filtering HTML on the client-side.  Assuming your code has that option set, it sounds like your HTML is being filtered before it gets to the browser.  Have you looked in Firebug to be sure it&#039;s coming back how you expected it to in the response?</description>
		<content:encoded><![CDATA[<p>The <code>{ filter_data: false }</code> option to processTemplateURL (as seen in the example above) prevents jTemplates from filtering HTML on the client-side.  Assuming your code has that option set, it sounds like your HTML is being filtered before it gets to the browser.  Have you looked in Firebug to be sure it&#8217;s coming back how you expected it to in the response?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobby</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-40142</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Wed, 20 Oct 2010 18:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-40142</guid>
		<description>Hey,
Using this solution, I&#039;m returning data from Oracle that contains something like this: &quot;four score and seven years ago..&quot;  I&#039;m expecting the &lt;strong&gt;seven&lt;/strong&gt; to be bold, however, I don&#039;t see anything.  Am I missing something?  Is there a contraint that prevents this?</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Using this solution, I&#8217;m returning data from Oracle that contains something like this: &#8220;four score and seven years ago..&#8221;  I&#8217;m expecting the <strong>seven</strong> to be bold, however, I don&#8217;t see anything.  Am I missing something?  Is there a contraint that prevents this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geek is a Lift-Style. &#187; 50 Excellent AJAX Tutorials</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-39159</link>
		<dc:creator>Geek is a Lift-Style. &#187; 50 Excellent AJAX Tutorials</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-39159</guid>
		<description>[...] Easily Build Powerful Client-Side AJAX Paging Using jQuery This is another useful tutorial on improving pagination with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Easily Build Powerful Client-Side AJAX Paging Using jQuery This is another useful tutorial on improving pagination with AJAX. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJAX &#124; Hello Tea</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-38839</link>
		<dc:creator>AJAX &#124; Hello Tea</dc:creator>
		<pubDate>Fri, 21 May 2010 16:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-38839</guid>
		<description>[...] Easily build powerful client-side AJAX paging, using jQuery In this post, you will learn how to implement great client-side paging, using jQuery and ASP.NET AJAX. It show every step very detail. [...]</description>
		<content:encoded><![CDATA[<p>[...] Easily build powerful client-side AJAX paging, using jQuery In this post, you will learn how to implement great client-side paging, using jQuery and ASP.NET AJAX. It show every step very detail. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-38774</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Sat, 08 May 2010 15:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-38774</guid>
		<description>Hi Dave, 
I have below doubts:
1) If i have 10 different pages and each contains one different grid then do i need to prepare 10 templates (.htm) files? while loading the htm file is not create one more hit to the server for getting this htm file?
2) For each table we have to write our  own sorting and paging?
3) plugins then which is the good plugin that will work as GridView works? there are number of names DataTables, jqGrid, TableSorter ... which one is standard faithful and applicable.
currently, i am doing paging as you described and regarding sorting i am thinking to do as you advised by adding events to thead cells of the table. But i found that for each template i have to do sorting and paging then it is more manual and error prone also will create big js file. 
Please advice.</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
I have below doubts:<br />
1) If i have 10 different pages and each contains one different grid then do i need to prepare 10 templates (.htm) files? while loading the htm file is not create one more hit to the server for getting this htm file?<br />
2) For each table we have to write our  own sorting and paging?<br />
3) plugins then which is the good plugin that will work as GridView works? there are number of names DataTables, jqGrid, TableSorter &#8230; which one is standard faithful and applicable.<br />
currently, i am doing paging as you described and regarding sorting i am thinking to do as you advised by adding events to thead cells of the table. But i found that for each template i have to do sorting and paging then it is more manual and error prone also will create big js file.<br />
Please advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-38761</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 07 May 2010 04:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-38761</guid>
		<description>I haven&#039;t written about that specifically.

If you want client-side paging, check out the TableSorter plugin.

For server-side paging, you would add click handlers to the thead cells, add a &quot;sort order&quot; parameter to the service method, and update the service method&#039;s LINQ statement to order the result &lt;em&gt;before&lt;/em&gt; applying the paging.

You also might be interested in plugins like jqGrid and DataTables.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t written about that specifically.</p>
<p>If you want client-side paging, check out the TableSorter plugin.</p>
<p>For server-side paging, you would add click handlers to the thead cells, add a &#8220;sort order&#8221; parameter to the service method, and update the service method&#8217;s LINQ statement to order the result <em>before</em> applying the paging.</p>
<p>You also might be interested in plugins like jqGrid and DataTables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-38760</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Fri, 07 May 2010 04:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-38760</guid>
		<description>Hi Dave,

It was the nice article to learn. However i have one thing can we do sorting also? Did you wrote somewhere about sorting like you did paging?</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>It was the nice article to learn. However i have one thing can we do sorting also? Did you wrote somewhere about sorting like you did paging?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 15 Very Useful Hand-Picked AJAX Tutorial - Ntt.cc</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-36946</link>
		<dc:creator>15 Very Useful Hand-Picked AJAX Tutorial - Ntt.cc</dc:creator>
		<pubDate>Wed, 04 Nov 2009 15:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-36946</guid>
		<description>[...] Easily build powerful client-side AJAX paging, using jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Easily build powerful client-side AJAX paging, using jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJAX Sample &#8211; Others- 阿維實驗室</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-36801</link>
		<dc:creator>AJAX Sample &#8211; Others- 阿維實驗室</dc:creator>
		<pubDate>Mon, 19 Oct 2009 13:46:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-36801</guid>
		<description>[...] Easily build powerful client-side AJAX paging, using jQuery [...]</description>
		<content:encoded><![CDATA[<p>[...] Easily build powerful client-side AJAX paging, using jQuery [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Excellent AJAX Tutorials &#124; 9Tricks.Com - Tips - Tricks - Tutorials</title>
		<link>http://encosia.com/easily-build-powerful-client-side-ajax-paging-using-jquery/#comment-36612</link>
		<dc:creator>50 Excellent AJAX Tutorials &#124; 9Tricks.Com - Tips - Tricks - Tutorials</dc:creator>
		<pubDate>Sat, 03 Oct 2009 03:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=337#comment-36612</guid>
		<description>[...] Easily Build Powerful Client-Side AJAX Paging Using jQuery This is another useful tutorial on improving pagination with AJAX. [...]</description>
		<content:encoded><![CDATA[<p>[...] Easily Build Powerful Client-Side AJAX Paging Using jQuery This is another useful tutorial on improving pagination with AJAX. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

