Angular DataTable server side big data query

Get data by paged list: 1. Angular Datatable Server Side Query, 2. .Net Core

├── @types/datatables.net-buttons@1.4.7 ├── @types/datatables.net@1.10.21 ├── angular-datatables@13.0.1 ├── datatables.net-buttons-dt@2.2.2 ├── datatables.net-buttons@2.2.2 ├── datatables.net-dt@1.12.1 ├── datatables.net-staterestore-dt@1.1.1 ├── datatables.net@1.11.4

// Html
	<div align="right" class="pb-1" >
	  <div class="controls" *ngIf="isLoading">
		<mat-progress-bar mode="indeterminate" color="primary" aria-label="Loading content"> </mat-progress-bar>
	  </div>
	</div>
	<div class="container-fluid h-100">
	  <table id ="recordtable" class="table table-bordered table-striped table-hover" datatable [dtOptions]="dtOptions"
		 style="width:100%">
		<thead class="table-dark">
		  <tr align="center" class="align-middle center">
			<th>Tech Name</th>
			<th>Customer</th>
			<th>Job No</th>
			<th>Record No</th>

		  </tr>
		</thead>
		<tbody>
		  <tr *ngFor="let dataItem of RecordList" scope="row">
			<td>{{dataItem.techName}}</td>
			<td>{{dataItem.customerName}}</td>
			<td>{{dataItem.jobNo}}</td>
			<td><span class="badge bg-info" > {{dataItem.natano}} </span></td>
		  </tr>
		</tbody>
	  </table>
	</div>

Last updated

Was this helpful?