Client-Side Pagination in LWC | Lightning web component

Sdílet
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

Komentáře • 32

  • @mohithsai3458
    @mohithsai3458 Před 2 lety +1

    very nice explanation, please update us more , great job this might help so many people😊

  • @philipphahmann5971
    @philipphahmann5971 Před rokem

    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!!

  • @aakivlogs9499
    @aakivlogs9499 Před 6 měsíci

    Thanks a lot @salesforce troop.
    Please continue with such great videos.

  • @sanjaychari9666
    @sanjaychari9666 Před 3 lety

    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

  • @kaarthika6298
    @kaarthika6298 Před 3 lety

    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.

  • @rohantelang1817
    @rohantelang1817 Před 3 lety

    Thanks a lot.....Very Nice explaination

  • @gabrielpf1960
    @gabrielpf1960 Před 2 lety

    Like like like content very good.. thanks for the vídeo!

  • @parth_mewara
    @parth_mewara Před 3 lety

    Loved this whole video.. Thank you so much.

  • @kishoredevalla6927
    @kishoredevalla6927 Před 2 lety

    Thank you so much for this video

  • @prempande25
    @prempande25 Před 2 lety

    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?

  • @subharaman3747
    @subharaman3747 Před 2 lety

    @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

  • @manmeetkaur80
    @manmeetkaur80 Před 3 lety

    Can you upload a video for Pagination in Forms(Lwc) would be a great help

  • @abdulraseedhs1523
    @abdulraseedhs1523 Před rokem

    after clicking next button, if we do page refresh its coming from the beginning and any one help how to maintain state?

  • @17shrestr
    @17shrestr Před 3 lety +1

    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.

    • @salesforcetroop
      @salesforcetroop  Před 3 lety +1

      i replied to your email bro.

    • @17shrestr
      @17shrestr Před 3 lety +1

      @@salesforcetroop Thank you very much for your time and effort. I really appreciate it for debugging and fixing my code.

  • @wagnerbaldin8651
    @wagnerbaldin8651 Před 2 lety

    Hello, it worked till before Debugging at 26:47, when the data disappear from my Org page... unfortunately. I could not go ahead.

    • @salesforcetroop
      @salesforcetroop  Před 2 lety

      share you code. i will have a look. salesforcetroop@gmail.com

  • @sandippaswan509
    @sandippaswan509 Před rokem

    Where is get record method return the visiblerecord

  • @subharaman3747
    @subharaman3747 Před 2 lety

    I tried it but its not working for the next button

  • @tanishkaarora4405
    @tanishkaarora4405 Před 3 lety

    How to implement server-side pagination?

  • @vaibhavsharma5114
    @vaibhavsharma5114 Před rokem

    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.

    • @salesforcetroop
      @salesforcetroop  Před rokem

      share your code github url to debug

    • @vaibhavsharma5114
      @vaibhavsharma5114 Před rokem

      @@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

  • @gastonComas2
    @gastonComas2 Před 2 lety

    I love u

  • @abdulahad-zb6kv
    @abdulahad-zb6kv Před 2 lety

    @api set is not working any solutions ?

  • @erwaqar
    @erwaqar Před rokem

    content not same as thumbnail

  • @VinayVernekar93
    @VinayVernekar93 Před 3 lety

    This is not a scalable solution, having millions of record on client side will make browser unresponsive.

    • @salesforcetroop
      @salesforcetroop  Před 3 lety +1

      i already mentioned in video, if you have 100-200 record use this solution. Otherwise, server side.

    • @VinayVernekar93
      @VinayVernekar93 Před 3 lety

      @@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.

    • @salesforcetroop
      @salesforcetroop  Před 3 lety +1

      @@VinayVernekar93 Sorry, I don't know apex. I just do LWC part time :)

    • @vengateshpandiyan6433
      @vengateshpandiyan6433 Před rokem

      try to do something like sending the last record id to server and filter the list