Duplicate keys
Duplicate keys
hminhduc
Posts: 22Questions: 13Answers: 1
When create new row data, sometime input a existing key data and i want add a custom message for check that.
So how can do check duplicate keys and raise error before submit action on client site.
This question has an accepted answers - jump to answer
Answers
Do an ajax call and check for duplicate key on the server. You can use an event handler for that, e.g. initSubmit
https://editor.datatables.net/reference/event/initSubmit