Cant get tables working correctly

Cant get tables working correctly

RainJarRainJar Posts: 3Questions: 2Answers: 0

so guys,
the basic set up of the table seems like it should be fairly easy right?
the Zero Options and it that it has, although when running it even just as a basic set up there is no pagination going on, no "show x per page" or search at the top...

like the table itself is drawing, and has a header row, has a nice amount of styling to the table through the css and that. So it seems that the .js files are loading, and the .css files are loading

though the outer wrapper on the table just isnt there at all?

code taken straight from the example has:

<

div class="dataTables_wrapper" id="example_wrapper">

<

table id="example" class="dataTable display" cellspacing="0" width="100%">

though when using this, it will as said generate the table itself fine, but have no actual content inside of the wrapper?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,569Questions: 26Answers: 4,996
    Answer ✓

    Its hard to say what the problem is without seeing your code. It sounds like the script is failing before completing the table initialization. Do you get any console messages in the browser?

    Kevin

  • RainJarRainJar Posts: 3Questions: 2Answers: 0

    Eugh, well.. its been a long day for me working on a lot of things and it completely slipped my mind to actually check console.. apparently the way the cshtml section files are set up the jquery library was being included after datatables so is now fixed.

    Good thing most of my day was spent on other things but tired me seems to not be good at remembering basic things ;p

This discussion has been closed.