how to remove sTitle in colums?

how to remove sTitle in colums?

magiceyemagiceye Posts: 4Questions: 1Answers: 0

when create datatables, the columns are auto generated {sTitle: something} object.

how to remove this object?

it makes my table two same title in one table.

thank you!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

  • magiceyemagiceye Posts: 4Questions: 1Answers: 0
    edited January 2017

    the <cols2> returns [{title:sid,title:date....}]
    but when $('#example').datatable({columns:cols2}), it returns [{title:sid,sTitle:sid....}]
    Obviously, auto generated sTitle, it makes two same titles.
    And also i try to push sTitle(the same as auto generated object), always return two headers..............
    i post some images.

    Thanks

  • magiceyemagiceye Posts: 4Questions: 1Answers: 0
    edited January 2017

    Allan
    I saw someone using <plain text> to showing code.
    Can you tell me how to use that?

    Thanks again.

  • kthorngrenkthorngren Posts: 20,276Questions: 26Answers: 4,765

    I saw someone using <plain text> to showing code. Can you tell me how to use that?

    Take a look at the instructions at the bottom of any Comment box.

    Kevin

  • magiceyemagiceye Posts: 4Questions: 1Answers: 0

    Thanks Kevin.

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin
    Answer ✓

    Thanks for the code snippets. Could you post a link to a page showing the issue so it can be debugged please.

    Allan

This discussion has been closed.