Simple Datatable issue 1

Datatable within a dialog, where an undefined error occurs when the
datatable is open and the then the dialog closed.