Redraw datatables after using ajax to refresh the table content?

I'm using Datatables and have a button on the page that refreshes the table using AJAX. To be clear the table isn't using an ajax source of data were just using ajax to refresh it when needed. Ajax is refreshing the div which the table is wrapped in. I know i'm losing my pagination buttons and filtering capability because the table needs to be redrawn but i'm not sure how to add this into the table initialization code.