Requery datatable contained in bottstrap modal

Requery datatable contained in bottstrap modal

garymichgarymich Posts: 5Questions: 3Answers: 0

Hi,

I was wondering if anyone else has come across this problem of if perhaps I am doing something wrong. I have a datatable contained within a modal. The user enters search criteria and clicks a button. In the event handler for the button I call a function that initializes the datatable and populates it with the JSON data returned by my web api function. When the user clicks the clear button the handler clears the existing search criteria, clears and destroys the datatable thus allowing them to enter different search criteria.
Up to this point everything is working fie until I now click the button to search a second time. I don't appear to be getting an error but I the datatable isn't repopulated either.

Anyone have any ideas about this? Any help would be greatly appreciated.

This discussion has been closed.