When u initialize a Pagination widget with grid data and later add data to the grid using the grid.data.add method, the pagination doesn’t behave as expected.
When you click to go to the next page for example it stays black.
Thanks for the effort to provide this nice snippet.
However this snippet calls:
grid.data.parse(dataset); // <— here
BEFORE
grid.data.add
If your layout is designed to load with empty dataset, which later gets populated by user’s action (imagine he opens a modal with a form and input some data and then clicks “save” and the data gets attached to the grid). when you go to the second page of the pagination it doesn’t display any data.
Here is your snippet which demonstrates what i am pointing.
Overall this is very confusing and buggy. Also i have submited few issues with columns where some of the methods don’t work as expected if you load the grid with empty dataset and later populate it.
Thank you for your report. The problem was confirmed.We’ll try to fix it in one of the future updates.
I’ll inform you about any progress on this issue.
For now I can suggest you to use the parse()/load() method for the initial data populating.
We fixed your reported problem in the latest dhx.Suite update (8.3.4).
Now populating the data with the data.add() method should work well in the paginated grid.
You can test it in your original snippet: https://snippet.dhtmlx.com/1z0b6o6y
Please. download the latest available dhx.Suite build from your client’s area to get this fix.
Thank you for your report.
Best regards.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan