PrimeNG Table - Lazy Mode | Server Side Pagination | Lazy Loading | Angular

  Рет қаралды 11,734

Learn from Scratch

Learn from Scratch

Күн бұрын

Пікірлер: 20
@merdankuliyev2998
@merdankuliyev2998 9 ай бұрын
Thank you very much for your explaining! You are doing a great job!
@Md.AbdurRouf-f5n
@Md.AbdurRouf-f5n 3 ай бұрын
Thank you for explaining! It helped a lot!
@crazytk16
@crazytk16 5 ай бұрын
The video I needed it!
@neduj376
@neduj376 3 ай бұрын
SO many thaks to you!
@xpnhcnsh
@xpnhcnsh 6 ай бұрын
thanks for demo!
@mahmoudsayed133
@mahmoudsayed133 Жыл бұрын
Nice explaining thanks
@xpnhcnsh
@xpnhcnsh 6 ай бұрын
Hi, to use Primeng pagination, does the index of the data have to be self-grow INT number? Will it work if the database index is GUID?
@MatichekYoutube
@MatichekYoutube Жыл бұрын
Hi, nice tutorial. Small mistake I think it is "loadProducts($event: TableLazyLoadEvent)" - not loadProducts($event: LazyLoadEvent) Edit 2: how would you implement sort? Edit 3: Angular version is newer so different syntax
@haseena.khader
@haseena.khader Жыл бұрын
Thanks @MatichekKZbin For primeng 14 it will be LazyLoadEvent and in 16 it is TableLazyLoadEvent. For implementing the sorting (for eg: sort by id), add the below code in thead th id then on click of that button , onLazyLoad will trigger with LazyLoadEvent or TableLazyLoadEvent which will have sortField as "id" sortOrder. you can pass those to api to fetch sorted data. pass the correct sortField and SortOrder to api
@MatichekYoutube
@MatichekYoutube Жыл бұрын
@@haseena.khader thank you, will check it out. Oh ya, the version are different you are right.
@saiprathap9550
@saiprathap9550 4 ай бұрын
@@haseena.khader for primg ng 17 which one to use LazyLoadEvent or TableLazyLoadEvent , TableLazyLoadEvent is not showing in primengapi
@saiprathap9550
@saiprathap9550 4 ай бұрын
@@haseena.khader on click of sort icon the in component file the method which we have written will it automatically gets called?
@saiprathap9550
@saiprathap9550 4 ай бұрын
loadUsers(event: TableLazyLoadEvent ) { console.log('event',event); this.loading = true; const page = (event.first || 0) / (event.rows || 0); const size = event.rows || 10; const sortField = event.sortField || 'name'; const sortOrder = event.sortOrder === 1 ? 'asc' : 'desc'; this.userService.getAllUsersData(sortField,sortOrder,page, size).subscribe( (response) => { this.users= response?.allUserModel; this.totalRecords = response.totalCount; this.loading = false; }, (error) => { console.error('Error loading data', error); this.loading = false; } ); } this is my ts Name this is my html how to implement server side sorting
@afrazsheikh9822
@afrazsheikh9822 Жыл бұрын
I need help in p-dropdown In my case lazyloadEvent is not firing
@haseena.khader
@haseena.khader Жыл бұрын
I didnt tried that yet. I can some opened issue regarding that. Did you try with virtualScroll enabled ?
@adityateja8859
@adityateja8859 9 ай бұрын
Hi Need help with that. Unable to get it worked. Plz help me
@haseena.khader
@haseena.khader 9 ай бұрын
What is the error?
@sarathgangadharan960
@sarathgangadharan960 Жыл бұрын
Thank you @learnFromScratch it saved my day
PrimeNG Accordion in Angular
16:40
Learn from Scratch
Рет қаралды 1,7 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Angular Ag-Grid Server Side Pagination - CodeWithSrini
22:53
CodeWithSrini
Рет қаралды 23 М.
💥 Angular SSR Deep Dive (With Client HYDRATION) #angular
24:56
Angular University
Рет қаралды 22 М.
My New Favorite Pagination Method
5:45
Josh tried coding
Рет қаралды 91 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 71 М.
Angular Server Side Filter , Sorting & Pagination | Angular Tutorial
34:37
Here's what I've figured out about Angular signals
8:33
Joshua Morony
Рет қаралды 22 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН