Using DataTable Editable inside a MasterPage

Using DataTable Editable inside a MasterPage

dvnandoverdvnandover Posts: 42Questions: 0Answers: 0
edited October 2011 in Plug-ins
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

Replies

  • LylmikLylmik Posts: 1Questions: 0Answers: 0
    Hi,
    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.
This discussion has been closed.