DataGridJson settings rows per page ignored

I’ve adapted the solution from @stefano.menci DataGrid Json.
For some reason my rows per page settings are being ignored. It’s not a problem as long it’s small but from 2000+ it takes time to load. I’m not sure why every time the whole data get’s loaded

How to reproduce: Open database “dataloader” and download an excel example file.
Run the app and from the drop down select the only available option. Select the file and wait. It will show the data while ignoring the limit of rows per page.

      settings = {
          'rows_per_page': 20,
          'show_page_controls': True,
          'on_click': self.row_click,
      }

Can someone help me, what I set wrong, that the Row Limitation get’s ignored?

Clone link:
share a copy of your app

I cloned your app and ran it as described, and I reproduced the problem.

I deleted the DataGridJson component from the app, added my DataGridJson as dependency and ran it, and it worked as expected.

I tried to do a quick diff between my version and yours, but it was too difficult, because the folder structure changes. So I don’t know what went wrong.

I would suggest for you to clone the DataGridJson app to your account and use it as a dependency on the new app. This would avoid any conflict with anything outside the modules, like javascript or other resources.

2 Likes