In the 'Form inputs' example: how to open up the cells for editing when the page is rendered.
In the 'Form inputs' example: how to open up the cells for editing when the page is rendered.
jhenderson
Posts: 4Questions: 2Answers: 0
In the 'Form inputs' example how did you open up the cells for editing when the page is rendered? In the Forms Example the rows are already 'opened up' when the page is displayed. I see no where that tells how to do that. In most examples you have to Click on the field to open it up. I would like to have them already opened for editing.
This discussion has been closed.
Answers
Are you talking about this?
If so, im not sure what you mean by
The cells just contained
input
andselect
, nothing was "opened up" per say..Maybe I didn't understand you though, or if the example is wrong, link to the proper example, or at least provide more detail
Your link to http://datatables.net/examples/api/form.html is correct. Maybe I am just not finding it, but I don't see anywhere else in the examples, that shows in-line editing with the data cells already 'opened' (editable, populated) . Typically you have to click on a row or cell to edit the value. I see in the example's html has something like this..
<td><input type="text" id="row-3-age" name="row-3-age" value="66"></td>
<td><input type="text" id="row-3-position" name="row-3-position" value="Junior"></td>
<td><select size="1" id="row-3-office" name="row-3-office"> etc. ...
I guess I'm not sure how to get those inputs into the datatable so I can submit them like a form.
I think youre talking about the Editor plugin for DataTables..
I appreciate your help. I am a backend java developer with little knowledge on jquery. I was able to reproduce the example by usesing something like this
However I can't figure out how to submit the input values back to the server. Would there be some kind of ajax call back to server? Could you possibly provide an example?