Timeline for Destroy datatable tables on modal-close
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 18, 2016 at 3:06 | vote | accept | Wafie Ali | ||
| Dec 16, 2016 at 3:52 | comment | added | Wafie Ali | still same, cannot work as per your suggestions. but nvm, I'll keep with my first comment & I'm highly appreciate your assistance & supports. | |
| Dec 16, 2016 at 3:46 | comment | added | Wafie Ali |
I try this $('#get_contacts').on('hidden.bs.modal', function () { $('#contacts_table#group_table#global_contacts_table#global_group_table').dataTable().fnDestroy(); }); by removing tailing , but the table unload, just the header loaded. Is there somewhere I'm still missing?
|
|
| Dec 16, 2016 at 3:34 | comment | added | Wafie Ali | just try, it's not working as your suggestions. my pleasure to have your check on my answers below to modify it if necessary, so I may test again. thanks! =) | |
| Dec 16, 2016 at 3:26 | comment | added | Wafie Ali |
it's working! thanks @Nishanth Matha. I've add the rest of datatables code as here:- $('#get_contacts').on('hidden.bs.modal', function () { $('#contacts_table').dataTable().fnDestroy(); $('#group_table').dataTable().fnDestroy(); $('#global_contacts_table').dataTable().fnDestroy(); $('#global_group_table').dataTable().fnDestroy(); });
|
|
| Dec 16, 2016 at 3:24 | vote | accept | Wafie Ali | ||
| Dec 18, 2016 at 3:05 | |||||
| Dec 16, 2016 at 3:19 | history | answered | Nishanth Matha | CC BY-SA 3.0 |