Thank you very much for your explaining! You are doing a great job!
@Md.AbdurRouf-f5n3 ай бұрын
Thank you for explaining! It helped a lot!
@crazytk165 ай бұрын
The video I needed it!
@neduj3763 ай бұрын
SO many thaks to you!
@xpnhcnsh6 ай бұрын
thanks for demo!
@mahmoudsayed133 Жыл бұрын
Nice explaining thanks
@xpnhcnsh6 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@haseena.khader thank you, will check it out. Oh ya, the version are different you are right.
@saiprathap95504 ай бұрын
@@haseena.khader for primg ng 17 which one to use LazyLoadEvent or TableLazyLoadEvent , TableLazyLoadEvent is not showing in primengapi
@saiprathap95504 ай бұрын
@@haseena.khader on click of sort icon the in component file the method which we have written will it automatically gets called?
@saiprathap95504 ай бұрын
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 Жыл бұрын
I need help in p-dropdown In my case lazyloadEvent is not firing
@haseena.khader Жыл бұрын
I didnt tried that yet. I can some opened issue regarding that. Did you try with virtualScroll enabled ?
@adityateja88599 ай бұрын
Hi Need help with that. Unable to get it worked. Plz help me