pickList is empty until first click on a pickList-Button

UI Components for Angular
Post Reply
stephan7777
Posts: 1
Joined: 25 Nov 2020, 13:06

25 Nov 2020, 13:19

I have a p-pickList that only works after having clicked once at one of the pickList-Buttons. Before I do that, the pickList is completely empty.
I am using primeng 10.0.3 with angular/cli 10.1.7

My pickList html code looks like this:

<p-pickList [source]="pickableTodoItemTemplates" [target]="pickedTodoItemTemplates"
sourceHeader="Nicht ausgewählt" targetHeader="Ausgewählt" [showSourceControls]="false" [showTargetControls]="false"
(onMoveToTarget)="onMoveToTarget($event)" (onMoveToSource)="onMoveToSource($event)">
<ng-template let-tit pTemplate="item">
<div>
<div>
{{tit.displayName}}
</div>
</div>
</ng-template>
</p-pickList>

The source and target arrays are initialized in the success-callback method of a REST-Service call that is invoked from the ngOnInit() method of the component.

Any ideas what could be missing?

tecgurus
Posts: 17
Joined: 04 Sep 2013, 04:44

29 Nov 2020, 03:41

I have same problem in one autocomplete multiple

bredd33
Posts: 1
Joined: 26 Nov 2020, 23:21

07 Dec 2020, 23:26

I have a p-pickList that only works after having clicked once at one of the pickList-Buttons. Before I do that, the pickList is completely empty.
I am using primeng 10.0.3 with angular/cli 10.1.7

My pickList html code looks like this:

<p-pickList [source]="pickableTodoItemTemplates" [target]="pickedTodoItemTemplates"
sourceHeader="Nicht ausgewählt" targetHeader="Ausgewählt" [showSourceControls]="false" [showTargetControls]="false"
(onMoveToTarget)="onMoveToTarget($event)" (onMoveToSource)="onMoveToSource($event)">
<ng-template let-tit pTemplate="item">
<div>
<div>
{{tit.displayName}}
</div>
</div>
</ng-template>
</p-pickList>

The source and target arrays are initialized in the success-callback method of a REST-Service call that is invoked from the ngOnInit() method of the component.

Any ideas what could be missing?

have you tried this

Code: Select all

var allCorect =  {! NOTISBLANK(Case.Picklist1__c) && NOTISBLANK(Case.Picklist2__c) && NOTISBLANK(Case.Picklist3__c) && NOTISBLANK(Case.Picklist4__c) && NOTISBLANK(Case.Picklist5__c)};

if(allCorrect)
    top.location = '/'+VISUAL_FlOW_URL;
else
    alert('Picklist cant be empty ');

ThoSap
Posts: 3
Joined: 01 Sep 2018, 17:02

08 Dec 2020, 11:02

I'm experiencing exactly the same issued with PrimeNG 10.0.3 and Angular 10.2.3

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests