Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

#19 Infinite Scrolling #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gavdraper
Copy link

I had to use JQuery templating so the ideas are rendered client side allowing me to pass JSON from the controller to the view for building the list. When you scroll to the bottom of the page if there are more ideas the view sends an ajax request to the controller to get the next batch of JSON.

@alexbeletsky
Copy link

I just had an idea, why not use Web API controller for Ideas, so using IQueryable<> functionality to get that paging stuff just for free ? :)

@gavdraper
Copy link
Author

I'm not 100% sure what you mean. I'm currently working with IQueryable to get the data relating to the page I want from the home controller, its then being queried and serialized to JSON where it is sent to the view to be rendered. I can see that I could have used the Web API to host the GetIdeas method but I'm not sure what paging I would have got for free?

I've not really had a chance to use the Web API yet so may be missing something huge? :)

@alexbeletsky
Copy link

@gavdraper
Copy link
Author

That looks impressive, almost looks too easy. I'm away this weekend but will try to work some of that in next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants