Showing the previous page when updating datagrid items

There’s also a set_page() method. This was missing from the api docs and autocompleter for some reason - but it should be there now.

def update_data_grid(self, repeating_panel, items):
  grid = repeating_panel.parent
  page = grid.get_page()
  repeating_panel.items = items
  grid.set_page(page)
3 Likes