Entering information into a new table

Entering information into a new table

anahitaanahita Posts: 3Questions: 0Answers: 0
edited March 2013 in General
Hello DT community. I am new to datatables and having a hard time to get it to work as I need it and finding the right plugin, so I am hoping someone or more, can help me out.
I need to have an empty table available on a page, where the user comes in and enters their name, middle name, last name and then chose from 2 other drop downs, in the other columns. here is the screen shot of what I have for now: http://screencast.com/t/PagVDnTmAjWT
I have found editable datatables but not one where the fields are empty as in my current table, which is input text for now - which is incorrect, I know. So if you can point me to the right place to put this in place, also making sure it works for IE9, IE8 and IE7 and all other major browsers.
Thank you all in advance and my apologies in advance if this has already been mentioned somewhere else and I have not found it.
Anahita

Replies

  • acidstoutacidstout Posts: 8Questions: 0Answers: 0
    Did you try a pseudo blank table (e.g. every cell has only a single space in)? To my mind DataTables needs some data in order to be able to let you edit it and at least show the table without the "no records found" message.
  • anahitaanahita Posts: 3Questions: 0Answers: 0
    I am not sure how to do that.
  • allanallan Posts: 63,519Questions: 1Answers: 10,473 Site admin
    > To my mind DataTables needs some data in order to be able to let you edit it and at least show the table without the "no records found" message.

    You could make that option an empty string using the i18n options. Possibly it should be allowed to be `null` and DataTables won't add it to the table.

    However, reading Anahita's issue, that sounds like a flaw in the editable plug-in. It probably needs a check added to it to see if the cell is the empty table cell or not (there is a class that it can use to check). I'd suggest opening an issue against that project.

    Allan
This discussion has been closed.