{"action":"created","issue":{"url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/57","repository_url":"https://api.github.com/repos/hyojin/material-ui-datatables","labels_url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/57/comments","events_url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/57/events","html_url":"https://github.com/hyojin/material-ui-datatables/issues/57","id":253174473,"number":57,"title":"Row Selection does not work with pagination.","user":{"login":"waqaskhan-zs","id":26089152,"avatar_url":"https://avatars0.githubusercontent.com/u/26089152?v=4","gravatar_id":"","url":"https://api.github.com/users/waqaskhan-zs","html_url":"https://github.com/waqaskhan-zs","followers_url":"https://api.github.com/users/waqaskhan-zs/followers","following_url":"https://api.github.com/users/waqaskhan-zs/following{/other_user}","gists_url":"https://api.github.com/users/waqaskhan-zs/gists{/gist_id}","starred_url":"https://api.github.com/users/waqaskhan-zs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waqaskhan-zs/subscriptions","organizations_url":"https://api.github.com/users/waqaskhan-zs/orgs","repos_url":"https://api.github.com/users/waqaskhan-zs/repos","events_url":"https://api.github.com/users/waqaskhan-zs/events{/privacy}","received_events_url":"https://api.github.com/users/waqaskhan-zs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-27T16:34:27Z","updated_at":"2017-08-31T01:26:49Z","closed_at":null,"author_association":"NONE","body":"```\r\n<DataTables\r\n          height={'auto'}\r\n          columns={TABLE_COLUMNS}\r\n          data={TABLE_DATA}\r\n          selectedRows={this.state.selectedMachines}\r\n          onRowSelection={this.rowSelection}\r\n          showRowHover\r\n          multiSelectable\r\n          selectable\r\n          showCheckboxes\r\n          count={this.props.machineList.length}\r\n          page={this.state.page}\r\n          onRowSizeChange={this.onRowSizeChange}\r\n          onNextPageClick={this.onNextPage}\r\n          onPreviousPageClick={this.onPrevPage}\r\n          rowSize={this.state.rowSize}\r\n        />\r\n```\r\nin 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.\r\nAm I missing something or do i have the configurations wrong?\r\nAny suggestions would be helpful. \r\njust a note: pagination works fine, everything else works fine just the row selection is a problem. "},"comment":{"url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/comments/326163091","html_url":"https://github.com/hyojin/material-ui-datatables/issues/57#issuecomment-326163091","issue_url":"https://api.github.com/repos/hyojin/material-ui-datatables/issues/57","id":326163091,"user":{"login":"hyojin","id":3413183,"avatar_url":"https://avatars1.githubusercontent.com/u/3413183?v=4","gravatar_id":"","url":"https://api.github.com/users/hyojin","html_url":"https://github.com/hyojin","followers_url":"https://api.github.com/users/hyojin/followers","following_url":"https://api.github.com/users/hyojin/following{/other_user}","gists_url":"https://api.github.com/users/hyojin/gists{/gist_id}","starred_url":"https://api.github.com/users/hyojin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyojin/subscriptions","organizations_url":"https://api.github.com/users/hyojin/orgs","repos_url":"https://api.github.com/users/hyojin/repos","events_url":"https://api.github.com/users/hyojin/events{/privacy}","received_events_url":"https://api.github.com/users/hyojin/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T01:26:49Z","updated_at":"2017-08-31T01:26:49Z","author_association":"OWNER","body":"@waqaskhan-zs then why don't you change your state, ```this.state.selectedMachines```, in your pagination event handlers?"}}
{"actor":{"display_login":"hyojin"}}