[jQuery] Re: disable column from sorting in tablesorter

2009-08-08 Thread gord007
I already found a solution.. Here is a widget you can use that will accomplish what you are looking for: $(function() { // add new widget called indexFirstColumn $.tablesorter.addWidget({ // give the widget a id id: "indexFirstColumn", // format is called when th

[jQuery] Re: disable column from sorting in tablesorter

2009-08-07 Thread amuhlou
apologies, I see now that it isn't exactly what you're looking for On Aug 7, 7:18 pm, amuhlou wrote: > I'm not sure if this helps, but you can configure tablesorter on a per > column basis > > http://tablesorter.com/docs/example-options-headers.html > > On Aug 7, 12:38 pm, gord007 wrote: > > >

[jQuery] Re: disable column from sorting in tablesorter

2009-08-07 Thread amuhlou
I'm not sure if this helps, but you can configure tablesorter on a per column basis http://tablesorter.com/docs/example-options-headers.html On Aug 7, 12:38 pm, gord007 wrote: > great answer :D > advise someone better? > > thx > > > > jQuery Lover-2 wrote: > > > You can write a javascript funct

[jQuery] Re: disable column from sorting in tablesorter

2009-08-07 Thread gord007
great answer: D advise someone better? thx jQuery Lover-2 wrote: > > > You can write a javascript function that will add a row count column > and after every table sort action will fire to clean the content of > the column and repopulate it with numbers from 1 to 100. You can use > tablesor

[jQuery] Re: disable column from sorting in tablesorter

2009-01-17 Thread jQuery Lover
You can write a javascript function that will add a row count column and after every table sort action will fire to clean the content of the column and repopulate it with numbers from 1 to 100. You can use tablesort's events: $("table").bind("sortEnd",function() { // write your code here }); -

[jQuery] Re: disable column from sorting in tablesorter

2009-01-17 Thread Rick Pasotto
On Sat, Jan 17, 2009 at 10:02:01AM -0800, MorningZ wrote: > > So to clarify, you always want that column to be sequentially 1 to n > where n is the number of rows? Yes. > and if so, and the sort is descending, would it be n to 1 ? No. the first row should always rank #1. The user can reverse t

[jQuery] Re: disable column from sorting in tablesorter

2009-01-17 Thread MorningZ
So to clarify, you always want that column to be sequentially 1 to n where n is the number of rows? and if so, and the sort is descending, would it be n to 1 ? On Jan 17, 12:10 pm, Rick Pasotto wrote: > I have a table in which the first column is the row number (always from > 1 at the top to