Input text boxes in grids

Input text boxes in grids

khobbskhobbs Posts: 1Questions: 1Answers: 0

How do you get the DataTable to make the editable textfields on this example?
https://datatables.net/examples/api/form.html

The HTML code shows input fields - but they are already there - it doesn't show how this is built dynamically. If you are loading data into the grid from JSON source, how do you specify what field should be text or should be an editable/input field?

Answers

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    For the example you can click on the HTML table to see the DOM based table. With an JSON data source you can use columns.render to render the inputs. The docs show rendering a link but you can dow something similar with inputs.

    Kevin

This discussion has been closed.