How to apply sorting for only first column in the jquery data table

How to apply sorting for only first column in the jquery data table

pravspravs Posts: 29Questions: 4Answers: 0

Hi
I am adding columns dynamically to the datatable basing on the json data. Now I want to remove sorting for all the columns except for the first column. Please help me

Replies

  • pravspravs Posts: 29Questions: 4Answers: 0

    I tried columnDefs: [{ orderable: false, targets: ['sorting']}], like this but it is not working where "sorting" is class name

  • pravspravs Posts: 29Questions: 4Answers: 0

    Please help me i need it urgent

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    How are you putting the class name 'sorting' on your thead th?

  • pravspravs Posts: 29Questions: 4Answers: 0

    Thanks,
    I am done with that Issue, Now its working fine.

This discussion has been closed.