18. Server Grid Pagination
The Problem
Large ERP datasets should be paged by the server so the browser does not download every row.
The Angular Difficulty
Server pagination requires the Angular service, page state, HTTP parameters, loading state, and grid integration to be coordinated.
Angular Approach
loadPage(page: number) {
return this.http.get("/api/items", {
params: { page, pageSize: 50 }
});
}
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
g.data = ms.data(
"Inventory",
"/itemsDataGrid",
"items",
true
);
Why this way is useful in business applications :
The comparison is intended to show where ManySet supplies a business-application abstraction around a recurring task, while keeping HTML and JavaScript visible and directly usable.
Key Point :
ManySet reduces the amount of framework-specific composition required for this particular task, without requiring the React/Angular mechanism to be represented as inherently wrong or incapable.