angular-datatables icon indicating copy to clipboard operation
angular-datatables copied to clipboard

serverside rerendring and searching

Open awais2080 opened this issue 7 years ago • 11 comments

I'm submitting a...


[ ] Bug report  
[ ] Feature request
[ ] Documentation there is issue 
[ ] Question i have successfully integrated the serverside according to my requirement data is shown but not being rerendered when i go for cvs or print it shows no data there   and searching is also not showing the expected result.

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

Environment


- node version:
- angular version:7
- angular-cli version:
- jquery version:^3.3.1
- datatables version:"^7.0.0",
- angular-datatables version: "^7.0.0",

below shows the html code

image

below shows ts code image

below shows the datatable result image

below shows the empty print data image

below shows the unexpected data while search filter

image

awais2080 avatar Dec 23 '18 16:12 awais2080

@l-lin bro i have already tested with approach rerendering in the doc but it keep on processing image

awais2080 avatar Dec 23 '18 18:12 awais2080

@l-lin i have also tried to make a button which explicitly call this.rerender () onclick but did not get luck

awais2080 avatar Dec 25 '18 21:12 awais2080

@l-lin bro i have already tested with approach rerendering in the doc but it keep on processing image

Will this work with http.GET ? instead of POST ? thanks

alamgirqazi avatar Jan 07 '19 14:01 alamgirqazi

@alamgirqazi according to me should work its just api but if you are trying with serverside let me know if you get positive rerendring issue

awais2080 avatar Jan 08 '19 19:01 awais2080

This is the API, API, It works with both GET and POST. It returns same data on GET and POST. Here's the example of server-side pagination. serverside example. The example works with POST but not GET.

can you also look at it @l-lin ?

alamgirqazi avatar Jan 09 '19 05:01 alamgirqazi

@alamgirqazi bro link you provided there is not serverside integration

awais2080 avatar Jan 12 '19 12:01 awais2080

@alamgirqazi bro link you provided there is not serverside integration

what do you mean? can you explain? thanks

alamgirqazi avatar Jan 14 '19 06:01 alamgirqazi

@awais2080, does your server implement the search function? Both client side and server side must implement the filtering when using server side processing.

In my documentation:

  • client side: https://l-lin.github.io/angular-datatables/#/basic/server-side-angular-way
  • server side: https://github.com/l-lin/angular-datatables-demo-server

l-lin avatar Jan 20 '19 14:01 l-lin

@awais2080, does your server implement the search function? Both client side and server side must implement the filtering when using server side processing.

In my documentation:

  • client side: https://l-lin.github.io/angular-datatables/#/basic/server-side-angular-way
  • server side: https://github.com/l-lin/angular-datatables-demo-server

brother lin problem is its not rendering if it renders search will automatically will work if you can make plunker or stackbiz where serverside integrated with api call and a search will be very much thankful i have been struggling for almost year to this datatable but serverside not helping me out really need your help in that :(

awais2080 avatar Jan 22 '19 11:01 awais2080

@l-lin this is what i am getting applying exact same setting as in doc

image

awais2080 avatar Feb 14 '19 07:02 awais2080

i am closing this as i have created another similar to this with precised info provided

awais2080 avatar Mar 17 '19 18:03 awais2080