Closed waqaskhan-zs closed 7 years ago
@waqaskhan-zs It seems like you're using selectedRows
prop to manage it programmatically. If you don't have specific reason, just remove it
@hyojin I am using selectedRows to show rows that are preselected when that component is loaded.
Thanks for replying
@waqaskhan-zs then why don't you change your state, this.state.selectedMachines
, in your pagination event handlers?
That's what i have done, but i was hoping the component would manage the selected machines.
in props onRowSelection the handler gets the index of the selected row, and when the page is changed the row is still selected, because the rows indexes will always be the same, where as the after the next page the data has changed. Am I missing something or do i have the configurations wrong? Any suggestions would be helpful. just a note: pagination works fine, everything else works fine just the row selection is a problem.