[ 4 posts ]

Christian Tiberg

  • Username: ctiberg
  • Joined: Sat Oct 17, 2009 8:06 am
  • Posts: 4
  • Location: Kristianstad, Sweden
  • Twitter: ctiberg
  • IRC: Tibbe
  • Offline
  • Profile

Expandable datatable having trouble with sort

Post Posted: Fri Jul 30, 2010 4:05 am
+0-
Hello!

I'm using the new and updated code for having a paginated datatable with expandable rows, and it mostly works. Take a look at this:

http://kristianstadbuss.se/avg.html

Click on "Platser" and it's marked as sorted. Now try to sort by *anything* else - no go :(

Any help would be wonderful!

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Expandable datatable having trouble with sort

Post Posted: Fri Jul 30, 2010 5:32 am
+0-
I tried it in Firefox and IE8 and it worked, even with some of the items expanded. After sorting by "Platser", I could sort it by any other column.

Christian Tiberg

  • Username: ctiberg
  • Joined: Sat Oct 17, 2009 8:06 am
  • Posts: 4
  • Location: Kristianstad, Sweden
  • Twitter: ctiberg
  • IRC: Tibbe
  • Offline
  • Profile

Re: Expandable datatable having trouble with sort

Post Posted: Mon Aug 02, 2010 2:46 am
+0-
Yes it does sort, but the Platser column is shown as being sorted as well as the other newly chosen column. That's the problem. In Chrome, Firefox and IE.

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Expandable datatable having trouble with sort

Post Posted: Mon Aug 02, 2010 4:24 am
+0-
Running it with the FireBug debugger on, it stopped at a couple of fatal errors inside minimized code, which I was unable to follow, it being minimized. I wasn't successful in trying to go back in the stack trace since I wasn't able to reach any non-minimized code that I could point to.

The code breaks when sorting by any column but Platzer, thus being unable to complete the process of refreshing the screen, including the styles that signal the sort status.

There was too much code for me to look at, and when that happens, even with my own code, the first thing I do is to get some help from automated validators, which have the patience I don't. HTMLValidator (available as an add-on to Firefox so that it really takes no real effort to get my pages validated) signals several errors and I am sure JSLint would also complain here and there. All these automated validators are a great help as you can't be expected to get everything right.

Then, load non-minimized versions and run it with the debugger on, so you can find out what it is complaining about, in some human-readable code.
  [ 4 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum