Sorting on table header

Sorting on table header

pasaamipasaami Posts: 7Questions: 0Answers: 0
edited May 2013 in TableTools
Hi,
Sorting on click of table header is not sorting with the updated data by AJAX. Its sorting the data based on the page refresh. Please help on this.

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Link to a test case please.

    Allan
  • pasaamipasaami Posts: 7Questions: 0Answers: 0
    Hi,
    Thanks a lot for your reply.
    I have found a workaround. I don't know weather its correct or not.
    Actually my requirement is, I have a table rows with html fields(input, select check box, etc). I am not able sort the table because of the html form fields. So I have added a hidden column which contains only the selected value of drop down or input box value. Of course those form fields will be modified by user. After modify the form field value, the sorting is not working properly. Because the hidden field value is not updated properly if I use $('#XXX').text('***modified value***'). Then I used fnUpdate() method to update the table cell with proper value. After that sorting working properly.

    Please suggest on this.
This discussion has been closed.