Closed srijanlama closed 2 years ago
pageLength = 2 not returning expected result on datatable
pageLength = 2
ngOnInit(): void { const that = this; this.dtOptions = { pagingType: 'full_numbers', pageLength: 2, // this should return datatable of page length 2 serverSide: true, processing: true, ajax: (dataTablesParameters: any, callback) => { that.http .post<DataTablesResponse>( environment.api_url + `job/manpower`, dataTablesParameters, {} ) .subscribe((res: any) => { that.jobs = res.data; callback({ recordsTotal: res.recordsTotal, data: [], }); }); }, columns: [{ data: 'id' }, { data: 'title.en' }], }; }
datatables shows more than 2 records
any help is Appreciated Sri Zn
:beetle: bug report
pageLength = 2
not returning expected result on datatableserver api response
request payload
datatables shows more than 2 records
any help is Appreciated Sri Zn