Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I've read all the posts about using DataTables and everything makes sense--however I still can't solve the problem so I'm posting here.

I'm working on someone else's Rails app, and they have dataTables set up. Specifically,

<table class="responsive table table-striped table-bordered dataTable">
    <thead>
        <tr>
           <th>Name</th>
           <th>Last Activity</th>
           <th>Active On</th>
        </tr>
     </thead>
<tbody>

So it's implementing dataTables. However whenever I try to pass a parameter so I can enable user sorting of the columns, it doesn't work. I've tried:

  • adding sDom="Rlfrtip" to the table.
  • Adding bSortable="true" to the <th>.
  • Messing around with aaSorting.
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.