Checkbox-Only Selection in DataTable

UI Components for React
Post Reply
Posts: 1
Joined: 08 Jan 2021, 17:03

03 May 2021, 18:02

Since PrimeReact version 6.3 the selection of multiple rows in a DataTable seems to be no longer possible with the properties '<DataTable selectionMode='checkbox'/> and '<Column selectionMode='multiple'/>. See this code taken from the example "Checkbox-Only Selection":

Code: Select all

<DataTable value={products} selectionMode="checkbox" selection={selectedProducts8} onSelectionChange={e => setSelectedProducts8(e.value)} dataKey="id">
                    <Column selectionMode="multiple" headerStyle={{width: '3em'}}></Column>
                    <Column field="code" header="Code"></Column>
                    <Column field="name" header="Name"></Column>
                    <Column field="category" header="Category"></Column>
                    <Column field="quantity" header="Quantity"></Column>
Which combination of properties do I have to use to be able to select a row only by using the checkbox only while it should be possible to select multiple checkboxes?

Posts: 4710
Joined: 29 Jun 2013, 12:38

07 May 2021, 01:34


Fixed for the next version.

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests