modal.modal().load(actionurl, function () { modal.show(); debugger; initializeGrid(); });
var initializeGrid = function () { debugger; tblZgs = null; var jsonData = [{ "userID": "1", "userName": "name1" }, { "userID": "2", "userName": "name2" }, { "userID": "3", "userName": "name3" }]; if (!$.fn.DataTable.isDataTable($tbl_zgs)) { tblZgs = $tbl_zgs.dataTable({ data: jsonData, columns: [ { data: 'userID' }, { data: 'userName' } ] }); //tblZgs.columns.adjust().draw(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)