Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8714479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:36:20+00:00 2026-06-13T05:36:20+00:00

I’m trying to use the tablesorter plugin from this page . It’s a very

  • 0

I’m trying to use the tablesorter plugin from this page. It’s a very simple plugin that do the sorting on the client-side.

Here is my repeater:

<asp:Repeater ID="RepeaterChangeLog" runat="server" >
        <HeaderTemplate>
            <table id="ChangeLogTable" class="table tablesorter table-bordered"> 
            <thead>
                <tr>
                <th>Date de correction</th>
                <th>Correcteur</th>
                <th>BugID</th>
                <th>Catégorie</th>
                <th>Module</th>
                <th>Description de la correction</th>
                <th>Impact</th>
                <th>Rapporté par</th>
                <th>Demandé par</th>
                </tr>
            </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td width="125px"> <%# DataBinder.Eval(Container.DataItem, "ChangeLogDate")%></a></td>
                    <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "FixedBy")%> </td>
                    <td width="75px"> <%# DataBinder.Eval(Container.DataItem, "BugID")%> </td>
                    <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "Category")%> </td>
                    <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "Module")%> <%# DataBinder.Eval(Container.DataItem, "AdditionalModule")%></td>
                    <td width="300px"> <%# DataBinder.Eval(Container.DataItem, "Description")%> </td>
                    <td width="300px"> <%# DataBinder.Eval(Container.DataItem, "Impact")%> </td>
                    <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "ReportedBy")%> </td>
                    <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "AskedBy")%> </td>
                </tr>
            </tbody>
        </ItemTemplate>

        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

Here is how I call the tablesorter

$(document).ready(function () {
            $("#ChangeLogTable").tablesorter();
    });

The result is strange. I can see the CSS applied, the up and down arrow are changing when I click on the header but the sort itself doesn’t work. I tried a very simple table found here in the same page and that table was working perfectly. The only difference I can see between the 2 are that one is generated with a repeater and the other is only plain HTML. In my opinion, it should not make a difference since the result is the same html but maybe Microsoft put some secret and hidden code in the header that make the plugin fail.

I hope someone could help me get around this problem! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:36:21+00:00Added an answer on June 13, 2026 at 5:36 am

    I found the problem and I can’t believe I didn’t see it the first time but eh… it was friday!

    The plugin is working with the “new” thead and tbody, which I’m not very use to. When I created my repeater, I just put the thead in the HeaderTemplate and the tbody in the ItemTemplate. But what I forgotted is that the ItemTemplate keeps repeating at each row, so my table had multiple tbody. This is not ok and the plugin will not work with this. In other words, that was terrible HTML.

    So here is the good repeater, with the tbody placed at the right place:

    <asp:Repeater ID="RepeaterChangeLog" runat="server" >
            <HeaderTemplate>
                <table id="ChangeLogTable" class="table tablesorter table-bordered"> 
                <thead>
                    <tr>
                    <th>Date de correction</th>
                    <th>Correcteur</th>
                    <th>BugID</th>
                    <th>Catégorie</th>
                    <th>Module</th>
                    <th>Description de la correction</th>
                    <th>Impact</th>
                    <th>Rapporté par</th>
                    <th>Demandé par</th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td width="125px"> <%# DataBinder.Eval(Container.DataItem, "ChangeLogDate")%></a></td>
                        <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "FixedBy")%></td>
                        <td width="75px"><a href="http://adobs.aquadata.com/edit_bug.aspx?id=<%# DataBinder.Eval(Container.DataItem, "BugID")%>"><%# DataBinder.Eval(Container.DataItem, "BugID")%></a></td>
                        <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "Category")%></td>
                        <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "Module")%> <%# DataBinder.Eval(Container.DataItem, "AdditionalModule")%></td>
                        <td width="300px"> <%# DataBinder.Eval(Container.DataItem, "Description")%></td>
                        <td width="300px"> <%# DataBinder.Eval(Container.DataItem, "Impact")%></td>
                        <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "ReportedBy")%></td>
                        <td width="100px"> <%# DataBinder.Eval(Container.DataItem, "AskedBy")%></td>
                    </tr>                
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
I am trying to understand how to use SyndicationItem to display feed which is
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am doing a simple coin flipping experiment for class that involves flipping a
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.