[jQuery] Re: TableSorter Set Column Sorter to false

2007-08-20 Thread Christian Bach
Dan,

You need to include the jquery metadata plugin:





See: http://tablesorter.com/docs/#Download


/christian


2007/8/20, Dan Vega <[EMAIL PROTECTED]>:
>
>
> The examples do not say anything about a metadata widget, should my
> code look like this?
>
> 
> $(document).ready(function() {
> // call the tablesorter plugin
> $("table").tablesorter({
> widgets: ['zebra','metadata']
> });
> });
> 
>
> On Aug 17, 5:29 pm, "Christian Bach" <[EMAIL PROTECTED]>
> wrote:
> > Dan,
> >
> > in order to set options inline you need to include the metadata
> > plugin. The reason why this seems to work with out metadata is because
> > the auto detection for column sorter is working its magic. There is no
> > need to specify sorters for standard columns like the ones that you
> > have in your table. /christian
> > 2007/8/17, Dan Vega <[EMAIL PROTECTED]>:
> >
> >
> >
> > > >From the docs I gather that I should be able to do the following:
> This
> > > should allow me to define the parser per column as well as to tell it
> > > that I do not want the edit column to be sortable. The parser
> > > definitions work fine but the sorter:false is not working. I want the
> > > edit column to be un-sortable, any suggestions?
> >
> > >  > >www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > > 
> > > 
> > >JQuery Grid
> > >
> > > rel="stylesheet"/>
> > >
> > >
> > >
> > >$(document).ready(function() {
> > >// call the tablesorter plugin
> > >$("table").tablesorter({
> > >widgets: ['zebra']
> > >});
> > >});
> > >
> > > 
> > > 
> > >
> > >
> > > 
> > > 
> > > First Name
> > > Last Name
> > > Age
> > > Total
> > > Discount
> > > Date
> > >Edit
> > > 
> > > 
> > > 
> > > 
> > > Peter
> > > Parker
> > > 28
> > > $9.99
> > > 20%
> > > 07/06/2006
> > >Edit
> > > 
> > > 
> > > John
> > > Hood
> > > 33
> > > $19.99
> > > 25%
> > > 11/10/2002
> > >Edit
> > > 
> > > 
> > > Clark
> > > Kent
> > > 18
> > > $15.89
> > > 44%
> > > 01/12/2003
> > >Edit
> > > 
> > > 
> > > Bruce
> > > Almighty
> > > 45
> > > $153.19
> > > 44%
> > > 01/18/2001
> > >Edit
> > > 
> > > 
> > > Bruce
> > > Evans
> > > 22
> > > $13.19
> > > 11%
> > > 01/18/2007
> > >Edit
> > > 
> > > 
> > >
> > >
> > > 
> > > 
>
>


[jQuery] Re: TableSorter Set Column Sorter to false

2007-08-20 Thread Dan Vega

The examples do not say anything about a metadata widget, should my
code look like this?


$(document).ready(function() {
// call the tablesorter plugin
$("table").tablesorter({
widgets: ['zebra','metadata']
});
});


On Aug 17, 5:29 pm, "Christian Bach" <[EMAIL PROTECTED]>
wrote:
> Dan,
>
> in order to set options inline you need to include the metadata
> plugin. The reason why this seems to work with out metadata is because
> the auto detection for column sorter is working its magic. There is no
> need to specify sorters for standard columns like the ones that you
> have in your table. /christian
> 2007/8/17, Dan Vega <[EMAIL PROTECTED]>:
>
>
>
> > >From the docs I gather that I should be able to do the following: This
> > should allow me to define the parser per column as well as to tell it
> > that I do not want the edit column to be sortable. The parser
> > definitions work fine but the sorter:false is not working. I want the
> > edit column to be un-sortable, any suggestions?
>
> >  >www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > 
> > 
> >JQuery Grid
> >
> >
> >
> >
> >
> >$(document).ready(function() {
> >// call the tablesorter plugin
> >$("table").tablesorter({
> >widgets: ['zebra']
> >});
> >});
> >
> > 
> > 
> >
> >
> > 
> > 
> > First Name
> > Last Name
> > Age
> > Total
> > Discount
> > Date
> >Edit
> > 
> > 
> > 
> > 
> > Peter
> > Parker
> > 28
> > $9.99
> > 20%
> > 07/06/2006
> >Edit
> > 
> > 
> > John
> > Hood
> > 33
> > $19.99
> > 25%
> > 11/10/2002
> >Edit
> > 
> > 
> > Clark
> > Kent
> > 18
> > $15.89
> > 44%
> > 01/12/2003
> >Edit
> > 
> > 
> > Bruce
> > Almighty
> > 45
> > $153.19
> > 44%
> > 01/18/2001
> >Edit
> > 
> > 
> > Bruce
> > Evans
> > 22
> > $13.19
> > 11%
> > 01/18/2007
> >Edit
> > 
> > 
> >
> >
> > 
> > 



[jQuery] Re: TableSorter Set Column Sorter to false

2007-08-17 Thread Christian Bach

Dan,

in order to set options inline you need to include the metadata
plugin. The reason why this seems to work with out metadata is because
the auto detection for column sorter is working its magic. There is no
need to specify sorters for standard columns like the ones that you
have in your table. /christian
2007/8/17, Dan Vega <[EMAIL PROTECTED]>:
>
> >From the docs I gather that I should be able to do the following: This
> should allow me to define the parser per column as well as to tell it
> that I do not want the edit column to be sortable. The parser
> definitions work fine but the sorter:false is not working. I want the
> edit column to be un-sortable, any suggestions?
>
>  www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> 
> 
>   JQuery Grid
>   
>   
>   
>   
>   
>   $(document).ready(function() {
>   // call the tablesorter plugin
>   $("table").tablesorter({
>   widgets: ['zebra']
>   });
>   });
>   
> 
> 
>   
>   
> 
> 
> First Name
> Last Name
> Age
> Total
> Discount
> Date
>   Edit
> 
> 
> 
> 
> Peter
> Parker
> 28
> $9.99
> 20%
> 07/06/2006
>   Edit
> 
> 
> John
> Hood
> 33
> $19.99
> 25%
> 11/10/2002
>   Edit
> 
> 
> Clark
> Kent
> 18
> $15.89
> 44%
> 01/12/2003
>   Edit
> 
> 
> Bruce
> Almighty
> 45
> $153.19
> 44%
> 01/18/2001
>   Edit
> 
> 
> Bruce
> Evans
> 22
> $13.19
> 11%
> 01/18/2007
>   Edit
> 
> 
>   
>   
> 
> 
>
>