Primeng: Allow to disable a single row selection on DataTable

Created on 12 Jul 2017  路  5Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ x ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
In a DataTable with selection, it is not possible to disable a single checkbox in a row based on a condition

Expected behavior
Allow to disable a single row selection based on a condition (disableSelection)

All 5 comments

+1 on this request, this would be very useful.
Thank you

Another +1.
I am currently looking for something like this. Although in my case I have a multiple selection datatable where I need to display a number of rows but also need to disable selection for some of them.

I have implemented this using templating in primeng . Here is my repo https://github.com/sryara/primeng-webpack-datatable-checkbox-disable

This seems to be a duplicate of https://github.com/primefaces/primeng/issues/1681

p-dataTable is deprecated and will be removed in favor of the new p-table (aka TurboTable) of 5.1.0 so closing the issue. Please try the new p-table once 5.1.0 is released.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miresk picture miresk  路  3Comments

gatapia picture gatapia  路  3Comments

just-paja picture just-paja  路  3Comments

cyberrranger picture cyberrranger  路  3Comments

lilling picture lilling  路  3Comments