Dynamically disable checkboxes in DataTable

UI Components for Vue
Post Reply
Posts: 3
Joined: 15 May 2020, 14:47

15 May 2020, 22:36


How can I enable/disable the checkboxes of the selection column (selectionMode="multiple") ?

It seems this question has already been asked - for other frameworks: I'm interested in a PrimeVue approach.

Thanks for any hint !

Posts: 18264
Joined: 05 Jan 2009, 00:21
Location: Cybertron

17 May 2020, 16:37

Created an enhancement ticket;


Currently there is no way however in case it is urgent, one quick solution is implementing your own checkboxes with table templating, that would be easier since you'll have full control over the checkbox which offers disabled property.

Posts: 3
Joined: 15 May 2020, 14:47

17 May 2020, 22:07

Hi Cagatay,

Thanks for the answer, and the enhancement ticket.

I tried to do it with table templating and checkboxes (both the standard checkboxes and the datatable rowcheckboxes), unfortunately I'm so new to both vue and PrimeVue that I couldn't find a simple way to bind the checked state of the checkboxes with the rest of the Datatable.
One day I'll be able to do it, but for the moment I'm still experimenting...

So no, it's not urgent (I'm prototyping and learning at the same time) - and I can wait.

By the way, it's not completely unrelated, but I had some issue with DataTable + Checkboxes + Edit mode - described here : https://github.com/primefaces/primevue/issues/315 . If you have some time to look at it and tell me if it's expected or not. Thanks.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: Antonio and 1 guest