Sluggish response with PrimeNG Components

UI Components for Angular
Post Reply
vvinsu
Posts: 1
Joined: 24 Jun 2021, 15:42

24 Jun 2021, 15:50

I am using a lot of PrimeNg components in my page. My page is having around 70 fields. Out of that 14 are PrimeNg tables, PrimeNg dropdown etc.
When the dropdown is clicked, it takes nearly 1-2 seconds for the dropdown to be opened. Angular is also showing violation messages. Does anybody have any idea about this issue? I tried searching elsewhere but couldn't find a solid solution.

PhilHuhn
Posts: 177
Joined: 19 Sep 2018, 02:52
Location: Ann Arbor, Michigan USA
Contact:

24 Jun 2021, 19:51

Hey:
Not much to go on.

1) Error messages are not good, so I suggest you post those messages.

2) I have no idea how you are accessing data. I employ what I call a unit-of-work for accessing data. By that I get all of the data in one 'get'. For example:

Code: Select all

export interface IProjectDataManager {
  Company: ICompany | undefined;
  Companies: SelectItem[];
  Projects: SelectItem[];
  Employees: ProjectEmployee[];
  Project: IProject | undefined;
  ProjectTeamMembers: IProjectTeamMember[];
  ProjectTasks: IProjectTask[];
  Assignments: IProjectTaskAssignment[];
  Jobs: IJob[]; // for ProjectTask JobId tree control
  Status: string;
  Message: string;
}

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests