I have a controller that returns a list of friends (over 100 friends). I want to display the first ten friends and if I click on a button (View More / Display all).
How can I do this? Can Ajax or jQuery do this? (I have never used either.)
I have a controller that returns a list of friends (over 100 friends). I want to display the first ten friends and if I click on a button (View More / Display all).
How can I do this? Can Ajax or jQuery do this? (I have never used either.)
You can look into using MVC's WebGrid. It has built in paging and sorting (also with Ajax support)