Adding Add New button

Adding Add New button

xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
edited April 2012 in General
I'm looking for a way I can add a "Add New" button to my datatables footer area so that when clicked will send the user to the add new form. I've looked on the datatables website and not sure if I should be using this or not.

http://datatables.net/extras/tabletools/

Any other thoughts on this?

Replies

  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    I'd like to add it to the rive of the search field.
  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    Yes indeed TableTools is a good option if you just want to sent the browser to another page. You might be interested in a new plugin that I've been working on for DataTables which adds full editing abilities: http://editor.datatables.net . The v1 software is ready, but I'm still improving the site a bit, which is why it hasn't been announced yet :-)

    Regards,
    Allan
  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    I want the button to actually be send the user to a new link.
  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    Is that possible? I was looking at this thread but I'm lost trying to figure out what I need to do to get mine to work.
  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    http://www.datatables.net/forums/discussion/1702/add-jquery-ui-button-to-datatable/p1
  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    Sure its possible - use the fnClick option for the TableTools button to set the window.location.href property to redirect the page: http://datatables.net/extras/tabletools/button_options#fnClick

    Allan
  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    I don't see how to place the button.
This discussion has been closed.