I dont want to sort the table. Rather, I want to reorder the <tr> based on a csv of the tr ids. This csv can be from the db, viewstate or session.
I would rather not add the controls dynamically to the table as the rows have a lot of complicated custom controls and adding them dynamically may open up other issues with viewstate etc. On Mar 3, 7:02 am, Rasit OZDAS <rasitoz...@gmail.com> wrote: > If I understand your problem correctly, you don't need JQuery for this, > you can just create rows dynamically on start. > > JQuery is needed only when you need to change sorting in the middle, using > Ajax etc. > Tablesorter doesn't sort as you want, it sorts like "ORDER BY" query in SQL. > > I recommend using Jquery Sortable (in JQuery-UI). > > Rasit > > 2009/3/3 spdude <sandeshm...@gmail.com> > > > > > > > I have an aspx page that looks something like this: > > > <tr id="Row1"> > > <td>Some label</td> > > <td>Some complex control</td> > > </tr> > > <tr id="Row2"> > > <td>Some label</td> > > <td>Some complex control</td> > > </tr> > > <tr id="Row3"> > > <td>Some label</td> > > <td>Some complex control</td> > > </tr> > > > As soon as the page is loaded, I would want to reorder these rows > > based on the user's previously selected order (stored in a database) > > > How would I use JQuery/JS to accomplish this? > > -- > M. Raşit ÖZDAŞ