dataTablesShared Question

dataTablesShared Question

DeckKurtDeckKurt Posts: 2Questions: 1Answers: 0

I am pretty new to datatables. In the code I am working on I have the following JavaScript:

base.dataTableShared({ target: '#SystemVersionHistoryTable', ordering: false, showButtons: true }); that I use to add some export buttons to the table header.

My goal is to hide all the sort buttons on the screen, from the instructions it seems that the ordering: false is the correct command. This works in some simple tests but does not work that grid.

Why does the ordering: false not work in this circumstance ?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,951
    Answer ✓

    I have not seen base.dataTableShared before and suspect its part of some framework that incorporates Datatables. My guess is a more specific configuration is overriding the shared config. Probably the best place to start is with the developer and docs of the framework. However if you feel this is a Datatables issue please post a link to your page or a test case so we can help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • DeckKurtDeckKurt Posts: 2Questions: 1Answers: 0

    So I just discovered a former coder wrapped everything behind a custom dataTablesShared method. So I found the problem

Sign In or Register to comment.