의도는 dataTable 사용에서 예를들어 2페이지에서 무언가를 하고 해당 내용을 새로고침 하고 싶은 경우다.
datatables server side processing reload table
Hello! I'm using datatables with server side processing. Need to reload data after changes dynamically. But .reload not working. Console log is clear.
datatables.net
간단히 아래와 같이 사용하면 된다.
1 | $('#table').DataTable().ajax.reload( null, false ); | cs |
reload의 괄호내 매개변수를 항목을 지우고 사용하면 첫 페이지가 로딩된다.
아래는 해당 함수의 문서
ajax.reload()
ajax.reload() Since: DataTables 1.10 Reload the table data from the Ajax data source. Description In an environment where the data shown in the table can be updated at the server-side, it is often useful to be able to reload the table, showing the latest d
datatables.net
# 관련글
[jQuery DataTable] table paging 적용 : https://deonggi.tistory.com/98
[jQuery DataTable] row click event : https://deonggi.tistory.com/102
'코딩 삽질' 카테고리의 다른 글
[oracle, mybatis] sequence 사용 (0) | 2021.04.10 |
---|---|
[jQuery DataTable] row click event (0) | 2021.04.10 |
spring과 jQuery ajax 통신 시 발생한 에러 (0) | 2021.04.10 |
[javascript] 객체(object) 메모 (0) | 2021.04.09 |
[jQuery DataTable] table paging 적용 (0) | 2021.03.31 |