Coder Social home page Coder Social logo

Infinite Scroll about x.pagedlist HOT 6 CLOSED

hn1 avatar hn1 commented on September 28, 2024
Infinite Scroll

from x.pagedlist.

Comments (6)

aloksharma1 avatar aloksharma1 commented on September 28, 2024

Hi,

i have done this with troygoodies version in previous mvc 5 project, its actually pretty simple to do...
so what you have to do this is following:

  1. generate paged data in a partial view or action or view component(in case of net core version)
  2. hide the paging pagination control simply using css display:none
  3. use javascript and ajax call once user comes into the end of viewport or element
  4. simply invoke next action link when in viewport
  5. grab ajax response and populate below the current div or block (in jquery you use append)
  6. repeat same

hope you understand the point..

from x.pagedlist.

hn1 avatar hn1 commented on September 28, 2024

from x.pagedlist.

hn1 avatar hn1 commented on September 28, 2024

from x.pagedlist.

aloksharma1 avatar aloksharma1 commented on September 28, 2024

if you can upload a sample repo, i can do the changes to make it work containers are no issue you just need to make your js logics for taking care of the issue, sorry dont have time to upload my own... as for the buttons yes you only need next but i just used boilerplate as its hidden i dont care about it. but you can choose to do a custom pager implementation if you just want next button to render (i simply hides it for simplicity).

from x.pagedlist.

hn1 avatar hn1 commented on September 28, 2024

from x.pagedlist.

aloksharma1 avatar aloksharma1 commented on September 28, 2024

maybe you can use this :https://infinite-scroll.com/

from x.pagedlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.