NetTalk Central

Author Topic: is sorttable css class hard-coded in template?  (Read 4187 times)

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
is sorttable css class hard-coded in template?
« on: November 01, 2007, 06:17:26 AM »
Hi

Why does the class of the table change depending on whether I select to have none,client-side or server-side sorting on a table?
The look of the table shouldn't change with the function unless I need it to. In this case the template seems to be taking over.
Is there a reason for this that I am not getting?

Chris
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: is sorttable css class hard-coded in template?
« Reply #1 on: November 01, 2007, 10:22:11 PM »
Hi Chris,

The client-side sorting script was one of the first I used, and while good, it's proven to be slightly less flexible than I'd hoped for.

To cut a fairly long story short, the client side script "kicks in" when it sees a table with the sortable class. So client-side is fixed to "sortable". It's on my list of things to re-visit, but in the meantime I'd recommend you stick with the server-side script.

Incidentally, there are other issues with the client-side script - most notably that it doesn't "remember" the sort order you last chose.

Cheers
Bruce

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: is sorttable css class hard-coded in template?
« Reply #2 on: November 02, 2007, 07:02:12 AM »
I only use it on file loaded tables. I didn't notice that the sort was dependent on the class selector. Sounds dangerous <g>
Real programmers use copy con newapp.exe