jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Calling Rest Api when we filter on data, and on each next/previous page click.
Tagged: Rest using Filter
This topic contains 3 replies, has 2 voices, and was last updated by Hristo 4 years, 2 months ago.
-
Author
-
February 12, 2021 at 4:22 am Calling Rest Api when we filter on data, and on each next/previous page click. #114477
Hi Team,
1. We want to pull data from Rest Endpoint and show it on the grid.
2. As our data is huge around 100k records in a single grid, we want to filter data run time basis i.e. Each of our filter will hit one rest query at Rest Endpoint to filter it further. Because we donot want to show complete data in one go.
In short for example – we want to show 25 records in 1 page and user can still filter on complete database table and as soon as user submits, data from db is retrieved to show data on ui in same grid.3. As soon as user click on next page, data for next page should be retrieved from DB and shown to the grid.
February 12, 2021 at 8:58 am Calling Rest Api when we filter on data, and on each next/previous page click. #114480Hello gourav@e-labs.ai,
I would like to suggest you look at this demo:
https://www.jqwidgets.com/jquery-widgets-demo/demos/php/index.htm#demos/php/serverfiltering_paging_and_sorting.htm
It demonstrates how to bind to the database and also, it handles filtering and paging on the Server-Side.
You could change the default settings of the pager to show more records via thepagesize
property and also, you could combine it with thepagesizeoptions
property.
Also, I would like to suggest you look at this help-topic:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/phpintegration/php-server-side-grid-paging-and-filtering.htm?search=
There you could find how to handle the query parameters which the jqxGrid sends to the server.
The same approach you could use in your environment.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comFebruary 12, 2021 at 9:34 am Calling Rest Api when we filter on data, and on each next/previous page click. #114484Hi,
This example talks about JavaScript/jQuery and PHP.
Can I use Angular and Java ? Do we have some example of TS code around that ?
February 12, 2021 at 3:09 pm Calling Rest Api when we filter on data, and on each next/previous page click. #114492Hello gourav@e-labs.ai,
The approach is similar to the one mentioned before.
Please, take a look at this tutorial:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/java-integration/grid-server-side-sorting-paging-filtering-using-jsp.htm?search=
More specifically for the Angular project, I would like to suggest you look at this tutorial:
https://www.jqwidgets.com/angular-components-documentation/documentation/angular-serverside/angular-serverside-filtering.htm?search=Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.