datatable row inline editing : restrict rows to decimal numbers only ?
datatable row inline editing : restrict rows to decimal numbers only ?
x14841003
Posts: 33Questions: 9Answers: 0
Hi
In the scenario of an inline editing datatable with a static table where not only columns are static but also rows (the source of my datatable being a regular static HTML table).
Is it possible to restrict some rows input (and of course some columns) to decimal numbers only (in my scenario for the entire row)
I know this is possible for columns (via 'attr') but is it also possible for static rows ?
Thanks so much
x1484
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @x14841003 ,
This thread should help, it's asking the same thing.
Cheers,
Colin
Hi Colin,
Thanks for that. When Allan mentions " add a key event listener", is this a javascript thing or a datatable thing ?
Thanks again
x1484
Hi @x14841003 ,
Standard JS, see this SO thread, there are a few examples on it.
Cheers,
Colin
Hi
Ah ok, thanks for that
x1484