got a little further - the sort script seems to do something but I'm
getting the following error:

this.get("text").format is not a function
[Break on this error] });this.sortSpans.empty
();this.sortEnabl...e.parse(this.get("text").format("db"));\n

am I still doing something wrong?

On Nov 6, 9:19 pm, mmjaeger <[email protected]> wrote:
> Hello
> I wanted to give the table sort a try but I can't get it to work - I'm
> not getting any error but the sorting just never occurs - I must be
> missing something:
>
> setTableSort: function() {
>                 var el = $('tblDownload');
>                 if ($defined(el)) return false;
>                 var table = new HtmlTable(el, {
>                         sortIndex: 1,
>                         parsers: ['string', 'string', 'numberLax', 'date'],
>                         classHeadSort: 'expand',
>                         classHeadSortRev: 'collapse',
>                         sortable: true,
>                         onSort: function() {
>                                 console.log('done sorting');
>                         }
>                 });
>
>                 table.sort(2, true);
>         }
>
> Thanks

Reply via email to