primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Allow to disable a single row selection on DataTable

Open parisgianluca opened this issue 9 years ago • 5 comments

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)

parisgianluca avatar Jul 12 '17 09:07 parisgianluca

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

LsKLele avatar Jul 28 '17 09:07 LsKLele

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.

steigerm avatar Aug 07 '17 17:08 steigerm

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

sryara avatar Aug 21 '17 03:08 sryara

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

rich4756 avatar Nov 03 '17 02:11 rich4756

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.

cagataycivici avatar Jan 13 '18 22:01 cagataycivici