And I want to implement simple pagination mechanic, when user scrolls down till the bottom I would like to do fetch and merge new nodes into the model of palette.
What would the best way to make it?
The general answer is to implement a “ViewportBoundsChanged” DiagramEvent listener that notices when the user has scrolled “to the bottom” according to the Diagram.documentBounds compared with the Diagram.viewportBounds, and that there should be more nodes, and that you haven’t already made a request, and if so then requests more nodes from the server. When a successful response arrives, commit a transaction in which you add all of the new node data to the model.