All Questions
59 questions
1
vote
1
answer
78
views
PrimeNG p-dropdown [disabled] does not appear to work in PrimeNG 17.18.x
I noticed a p-dropdown in PrimeNG 17.18.x when set in the disabled state ignores this state and can be focused and an item selected. In version 14.x it works fine. Can anyone shed some light on this ...
1
vote
1
answer
128
views
How to use PrimeNG Autocomplete with multiple selection in a FormArray?
I'm working on an Angular project where I need to implement a form that includes a FormArray with multiple FormControl instances, each using PrimeNG's Autocomplete component with multiple selection ...
0
votes
0
answers
41
views
Angular Reactive Forms logic error with multiple radio-buttons
I am facing the following situation:
I am building an app for surveys that has the following structure:
A survey can have multiple pages, each with questions. Amid multiple possible question types, ...
4
votes
1
answer
1k
views
PrimeNg editor: Value is not showing form the formControl
I have a component, which contains a formGroup which consists of two controls:
`enFormGroup: FormGroup = this.fb.group({
titleEn: ['test', Validators.required],
textEn: ['hello world', ...
1
vote
0
answers
49
views
FormControl becomes 'undefined' when using Prime NG's Dropdown with ngIf directive
I have a dropdown component which eventually uses Prime NG's Dropdown Component with FormControl where I pass ParentFormGroup and FormControlName as input. Now I have a form which has a *ngIf ...
1
vote
0
answers
897
views
p-dropdown doesn't setValue manually with Reactive Form
I'm trying to set manually the form after some services retrieve some information, and I need to set back again to the dropdown the values (using setTimeout for practicity).
Along side are a normal ...
2
votes
1
answer
876
views
p-table primeng edit with reactive form
I created a table using primeng's table component with reactive form.
The task table will have only one column with the task name and it will be editable.
When clicking on the editing icon and typing ...
2
votes
1
answer
4k
views
PrimeNG checkbox group with a reactive form - How to get all checked values
I have a group of <p-checkbox> elements (PrimeNG), they all share the name attribute and formControlName attribute. The value of the form control is an array (as it should be), but it "...
1
vote
1
answer
998
views
How to change the color in the element p-colorPicker writing the hexcode (angular)
I'm using Angular and I need to find a way to change the color in the element p-colorPicker of PrimeNG writing the hexcode. What I did so far was making the inverse process, the input element text can ...
7
votes
1
answer
19k
views
Upload Files using reactiveForms and FileUpload component angular
I am using primeng for template.
And I am using p-fileupload component, but I need to use it in reactive form, so I want to know where to put formControlName as I don't get any input or something ...
2
votes
0
answers
716
views
PrimeNG Dropdown as a child in custom input - some problems
I am trying to create my own input component with reactive forms, in which I will have some various input types, where one of 'em would be PrimeNG Dropdown.
Currently, I am struggling with 3 cases:
...
0
votes
1
answer
95
views
Strange behaviour when using reactive forms
I am currently working on a big form using reactive forms on Angular. It is not that complex, but it has a lot of fields. In some fields, I want to open a modal when I click a button and, inside that ...
1
vote
1
answer
966
views
How to add "formControlName" to angular reactive forms "formGroup" from child components?
I have dynamic components in form and I want to connect fields with angular reactive forms.
for example we have
first-component.html
<form [formGroup]="myform">
...
<second-...
2
votes
0
answers
1k
views
PrimeNG p-dropdown with reactive forms not binding to value
I'm using Angular's Reactive Forms to create a list of PrimeNG dropdowns. The story is as follows: an Operator of my application has multiple supported languages (e.g. English, Greek, Spanish). For ...
2
votes
3
answers
4k
views
How to patch the value of multiselect dropdown (primeng component) in a reactive form?
I am using primeng components in the template.
I have the option to edit the form, which displays the existing field values. I am not able to patch the value of multiselect dropdown.
excludeDays = [ ...