17. Local Grid Pagination
The Problem
When a grid already has its complete dataset, pagination should happen locally without repeated server calls.
The Angular Difficulty
Angular does not provide a business-grid local paging API. The developer or grid library manages page state and row slicing.
Angular Approach
page = 1;
pageSize = 20;
get visibleRows() {
const start = (this.page - 1) * this.pageSize;
return this.rows.slice(start, start + this.pageSize);
}
MS Approach
ManySet provides a direct runtime-oriented approach for this recurring business-application task.
const g = ms.form.grid();
g.data = localRows;
g.paging = { mode: "local", pageSize: 20 };
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.