Questions tagged [primeng-checkbox]
12 questions
6
votes
3 answers
PrimeNG checkbox not getting checked by default
I have an angular project in which I am using a PrimeNG checkbox component but there is an issue when I am trying to set the checkbox's default value to checked. I even tried binding [checked] property but I guess it is not known to p-checkbox.
HTML…

Sunil Bishnoi
- 509
- 3
- 5
- 13
3
votes
1 answer
Identify the p-checkbox where an event occurs in Angular
I would like to know if there is a way to identify my checkbox, along with the event that occurs when it is selected, that is, if I can put a type of ID and pass it to my .ts file, along with the true or false that responds to me the…

Beimar Rojas
- 55
- 1
- 9
2
votes
1 answer
PrimeNG p-checkbox - Add asterisk mandatory sign after label
Below is my p-checkbox code:
How to add an asterisk sign after…
user11364823
2
votes
1 answer
Disabling PrimeNG checkbox
I'm trying to disable a PrimeNG checkbox in certain cases using the disabled property and setting it to true. However, each time the checkbox is disabled and I click it, it refreshes the page and takes me to the rootpage /#.
As a test I have tried…

sreisman
- 658
- 3
- 9
- 24
2
votes
1 answer
PrimeNG - Checkbox value as number
I am using primeng checkbox. I am trying to add number to the 'value' property of p-checkbox.
myNumb: number = 1;
Even though myNumb is set to a number, and rowData.enabled…

Dino
- 7,779
- 12
- 46
- 85
1
vote
1 answer
Long list of PrimeNG Checkboxes destroys the whole page layout
Open this StackBlitz
Scroll all the way down
Click on one of the last few checkboxes
(This occurs for me on Google Chrome Version 92.0.4515.131 (Official Build) (64-bit) but e.g. NOT on firefox - I did not check other browsers…

Manuel Andres
- 194
- 8
0
votes
0 answers
Angular Selected list data using checkbox persist without using table in primng
I am doing a list of item clicks to show their particular item values using Checkbox List
when I click a Each Check box Item show their separate checkbox List Item in another Column field,
If I select one Item and their Item values, then I move to…

Mariappan P
- 1
- 1
0
votes
1 answer
primeng how to inline style checkbox?
How can I use the style input of p-checkbox to change the border and background color of a checkbox?
I already tried [style]="{'background': '#ff0000'}". But this only applies the style to the div which holds the actual checkbox. So its useless.…

hemmoleg
- 125
- 1
- 8
0
votes
1 answer
Preselect checkboxes in primeng table
I have a requirement to preselect first 20 rows in primeng table
I have tried the following, but it gives an error can't bind to 'checked' since it isn't a known property of p-checkbox
I have tried replacing with ngModel as written in posts but to…

Tzippy Wo
- 21
- 6
0
votes
0 answers
Programmatically updating value of a property of PrimeNg component
I am making use of p-tableHeaderCheckboxavailable in p-table PrimeNG component.
https://www.primefaces.org/primeng-v7-lts/#/table
As per the example over there:-
…

Shad
- 1,185
- 1
- 12
- 27
0
votes
1 answer
Primeng checkbox checked issue angular
In my working on angular 8 application where I am using primeng checkbox and I have some issue.Checkbox data is coming from db. So if status==0, I have to make it unchecked and if status==1, it should be selected even if load the table(default). I…

sarasm
- 305
- 1
- 6
- 16
0
votes
0 answers
Check if PrimeNG checkbox checked or unchecked
check if primeNG checkbox checked or unchecked.
I am using primenNG 5.
https://www.primefaces.org/primeng-5.2.7/#/table/selection

Raman
- 353
- 1
- 5
- 13