After a thorough research on search engines it seems that I cannot keep the selected item on the single selection DataTable.
I am using REDUX and I can see that my value coming from the store is persistent but I cannot assign it to the DataTable, what I did so far:
Code: Select all
<DataTable value={this.props.projectsList} selectionMode="single" dataKey="id" selection={this.props.selProject} onSelectionChange={e => this.onRowSelect(e.value)}>
I see the props on the DataTable but none of those seems to implement the "selected" row.
What I am missing? Is there any other component that I can use ?
Thanks a million <3