Adding sorting arrows on header

Adding sorting arrows on header

fitsum80fitsum80 Posts: 17Questions: 0Answers: 0
edited July 2012 in General
I just disabled the sorting on my table by doing "bSort":false because I would like to sort the data on the server side. My question is how can I add the datatable's sorting arrows on the header?

Thanks,
Fitsum

Replies

  • dj_sumaoy14dj_sumaoy14 Posts: 9Questions: 0Answers: 0
    i don't think you need to do that if you want to use a server side sorting

    just add bServerSide: true in your config

    and use the parameters pass in your server to sort your query.
  • fitsum80fitsum80 Posts: 17Questions: 0Answers: 0
    sorry the confusion I am not using server side sorting but when the user click the header to sort then the table will recreate again and the sorting is done in java. Once the table created I use datatable but I would like to add the datatable sorting arrows manually.

    Thanks,
    Fitsum
  • dj_sumaoy14dj_sumaoy14 Posts: 9Questions: 0Answers: 0
    you should modify the rendering of your headers then add a span and set the proper class for your sorting
This discussion has been closed.