Using DataTable Editable inside a MasterPage
Using DataTable Editable inside a MasterPage
dvnandover
Posts: 42Questions: 0Answers: 0
The popup windows for adding a new record into DataTable Editable does not work due to existing tag has already defined once in my masterpage. I do not know how to get around the issue, Does anyone has any suggestions or solutions?
Thank you
Thank you
This discussion has been closed.
Replies
I was struggling with this issue for a while but think I've finally got it sorted.
In short, you just need to define the type of the buttons as "buttons" rather than "submit" (which is the default:
[code]Add[/code]
And then define your formAddNewRow Form wherever you like, so long as it's outside of your main form.
The Datatables-Editable code disables the default submit action of formAddNewRow, however by default Buttons are Submit-Buttons. So when you click the Add or Delete Row button you are actually submitting your main form.