How can I mainitain TableSort on subsequent postbacks. Basically I
sort a table using tablesorter() and when I click on Page# 2 in
GridView (ASP.NET) the sorting doesn't persists. Is there anyway I can
store the sorting values actross pages?

Thanks



On Jan 23, 11:21 am, jay <jay.ab...@gmail.com> wrote:
> I amend what I said.  A hashtable is not necessary for going from row
> number to unique id, an array is fine.  Going from unique id to row
> number, however, is necessary.
>
> On Jan 23, 11:16 am, jay <jay.ab...@gmail.com> wrote:
>
>
>
> > If you just postback the page, the table should be restored to the
> > original state.  Otherwise, if you have a unique id for each row you
> > could try creating a hash table which returns the unique id based on
> > the row number (create the hash table when page is first loaded).
> > Then you could just loop through the row numbers and insert each TR
> > based on the unique id that is returned using the DOM.  As for turning
> > it off, you could simply save the old TH event handlers and replace
> > them with function(){return false;} temporarily.
>
> > On Jan 23, 10:56 am, NRutman <nathan.rut...@gmail.com> wrote:
>
> > > Hello,
>
> > > I'm considering using the TableSorter plugin (http://tablesorter.com)
> > > for one of my projects, but I need to reconcile one thing: does anyone
> > > know how I can revert the sort back to the original?  Or even, how to
> > > turn the sort-state to OFF, so that no header is selected and it
> > > doesn't try to sort?  That way I could at least reload the table from
> > > the original data array.
>
> > > Any suggestions?
>
> > > Thanks,
> > > -Nate- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to