Client-Side Pagination in LWC | Lightning web component
Vložit
- čas přidán 4. 09. 2024
- In this video, we will create a reusable pagination lightning web component. We will cover the following topic in this video
1) Create a new component
2) Component composition
3) for:each loop
4) parent component to child component data passing
5) Child to parent data passing using custom event
6) getter and setter
7) fetching data from apex
8) Wire service
Server side pagination is better for:
Large data set
Faster initial page load
Accessibility for those not running JavaScript
Complex view business logic
Resilience to concurrent changes
Client side pagination is better for:
Small data set
Faster subsequent page loads
Sort & filter requirements supported fully (unless results greater than max size).
FOR COOL STUFF OF LIGHTNING WEB COMPONENT
www.salesforce...
FOLLOW ME -
FACEBOOK - / salesforcetroop
LINKEDIN - / nikhilkarkra
TWITTER - @karkra_nikhil
This is especially for all the students and IT professional who wants to make their career in Salesforce.
PLEASE DO LIKE, SHARE AND SUBSCRIBE THIS VIDEO WITH ALL YOUR STUDENT NETWORK, IT NETWORK AND SALESFORCE NETWORK.
Let everyone learn Salesforce and become a part of our #Ohana.#navigation #lwc #ohana #pagination
very nice explanation, please update us more , great job this might help so many people😊
I have no words to express how grate i'm right now, thank you so much for spending some time and efforts to delivery this awesome video, really appreciated!!
Thanks a lot @salesforce troop.
Please continue with such great videos.
hey Nikhil, loved this. it helped me in doing one of my learning lwc use cases. Need more such smaller reusable lwc components from you. Thank you
Thank you for the video. loved your content. Love the way you explain the topic even by listening we can execute your commands. Keep making videos.
Thanks a lot.....Very Nice explaination
Like like like content very good.. thanks for the vídeo!
Loved this whole video.. Thank you so much.
Thank you so much for this video
The video tutorial is so useful. I have learn may things. but Can you add one more extra functionality in Pagination as user want number of pages count to go directly in between next as previous pages?
@salesforce troop:
Please can you help me also.my currentpage value is not changing and my component is loading null records initially after i click next it shows only first 5 records and after its not slicing,its howing the same set of records
Can you upload a video for Pagination in Forms(Lwc) would be a great help
after clicking next button, if we do page refresh its coming from the beginning and any one help how to maintain state?
I tried adding some functionality in your code but just one functionality is not working as desired. I tried to figure to out but no luck. Could you please help me to debug it.
i replied to your email bro.
@@salesforcetroop Thank you very much for your time and effort. I really appreciate it for debugging and fixing my code.
Hello, it worked till before Debugging at 26:47, when the data disappear from my Org page... unfortunately. I could not go ahead.
share you code. i will have a look. salesforcetroop@gmail.com
Where is get record method return the visiblerecord
I tried it but its not working for the next button
How to implement server-side pagination?
Hello Sir,it worked till 27:00 but after parsing the value it stopped and unfortunately i couldn't go ahead,(i am using a combobox also to render a value into the html table based on user input.
share your code github url to debug
@@salesforcetroop Really thanks for replying and for such a helpful video sir,I debugged it myself with you another provided resources again thanksful to you
I love u
@api set is not working any solutions ?
content not same as thumbnail
This is not a scalable solution, having millions of record on client side will make browser unresponsive.
i already mentioned in video, if you have 100-200 record use this solution. Otherwise, server side.
@@salesforcetroop how to build server side solution? If you use offset, limit is of 2000 records. StandardSetController cant be used as state cannot be maintained.
@@VinayVernekar93 Sorry, I don't know apex. I just do LWC part time :)
try to do something like sending the last record id to server and filter the list