Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TableSorter loses header text

I'm using tablesorter in an asp:GridView and works fine but this been bother me for some time

Every time there is a button action (firing up a call to the server, refreshing the page), table sorter loses the headers as you can see by the 2 images below:

before refresh:

alt text http://www.balexandre.com/temp/2010-09-17_1504.png

after refresh:

alt text

Does anyone have an idea of if this might be a bug, or something on my end just for the behavior of it? Maybe someone already crossed this problem before

like image 941
balexandre Avatar asked Sep 17 '10 13:09

balexandre


1 Answers

One solution is to specify a custom header, and then put a conditional in your:

OnRowCreated

Event checking to see if you're currently processing the header row, and if so, populate with your custom header. This gets around the loss of the auto created headers.

like image 57
JTrott Avatar answered Oct 08 '22 09:10

JTrott