Textbox in Datatable

Textbox in Datatable

sanjannanair91sanjannanair91 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!

Answers

  • allanallan Posts: 63,687Questions: 1Answers: 10,500 Site admin

    Do you mean something along these lines?

    Allan

  • sanjannanair91sanjannanair91 Posts: 2Questions: 1Answers: 0

    Yes but this is Editor 2 version, right? Can we do it directly on the data table?

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    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 inserted tr.

    Kevin

This discussion has been closed.