AllenFang / react-bootstrap-table

A Bootstrap table built with React.js
https://allenfang.github.io/react-bootstrap-table/
MIT License
2.23k stars 782 forks source link

In pagination, staying on the same page of table after reloading or performing some action in it. #1952

Open Akshay-Raskar opened 6 years ago

Akshay-Raskar commented 6 years ago

In react bootstrap table pagination, if suppose I perform some action in any of the page (say page no. 3 for eg.), then the page no. 1 reloads back. But I want to see page no. 3 only after that action, instead of seeing page no. 1. I searched a lot, but couldn't find solution.

Akshay-Raskar commented 6 years ago

@AllenFang

nikolaSim commented 6 years ago

I have the same problem. When i select a row in page 2 , the table goes to page 1 .

const selectRowProp = { mode: 'checkbox', clickToSelect: true, onSelect: this.onRowSelect, // onSelectAll: this.onSelectAll, unselectable: this.state.unselectable, customComponent : this.customMultiSelect, selected: this.state.selected }

nikolaSim commented 6 years ago

@AllenFang The problem is that im using a filter too. So when i click a row in page 2 , handleFilterData is run again and goes to page 1.