Textbox in Datatable
Textbox in Datatable
sanjannanair91
Posts: 2Questions: 1Answers: 0
Hi,
I have created a table view that pulls data directly from my database Dynamically. I would like to add/edit a field by inserting a textbox to each row. Is it possible? if so how?
The example given in the website for Form input shows a hard-coded textbox.
Let me know!
Thanks!
This discussion has been closed.
Answers
Do you mean something along these lines?
Allan
Yes but this is Editor 2 version, right? Can we do it directly on the data table?
There is nothing built into Datatables to display an input row. However you could write the code for this. You could use jQuery to insert a
tr
with the inputs and submit button. Then when submitted your event handler would process the inputs and data as appropriate for your requirements and remove the insertedtr
.Kevin