search disappears when adding new column to datatables

search disappears when adding new column to datatables

jjf3jjf3 Posts: 5Questions: 0Answers: 0
edited October 2013 in General
Hello everyone new to the forums here. Datatables seems to be a very useful feature, however, I am having a little trouble getting started with the basics.

Why does the search box disappear when adding new columns in the HTML of datatables? I'm trying to convert something to jquery and data tables, but cannot figure out how to add new data besides for data in the pre-existing settings that I got when I downloaded the program. The website isn't very clear on how to add new columns...

For clarification, I can edit the existing data just fine, adding new ones is a pain.

This is what I have so far:
[code]



Rendering engine
Browser
Platform(s)
Engine version
CSS grade
new column



[/code]

As soon as I add new column the search bar and all useful features are disabled. What am I doing wrong? I'm guess I have to edit the Datatables.js file but how and where?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    As noted in the forum rules, and the new discussion form, please link to a test case showing the problem. DataTables can use as many columns as you want, so there is something else going wrong, but I have no idea what without a test case, sorry.

    Allan
  • jjf3jjf3 Posts: 5Questions: 0Answers: 0
    Let me know what you think: http://live.datatables.net/elixaj/
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Most of the rows in your table only have 5 columns. If you fix that it will work just fine: http://live.datatables.net/elixaj/2/edit .

    DataTables requires that the number of cells === rows * columns. Otherwise it won't work.

    Allan
  • jjf3jjf3 Posts: 5Questions: 0Answers: 0
    wow ok thanx. I didn't realize it was that simple...
This discussion has been closed.