I am working a mvc project where i had a grid with show more link.
Initially 5 records must be displayed when click show more link the another more 5 records must be loaded from database and display 10 records. and then 15,20 vice versa..
any one suggest me a good model.
i need to fetch 5 record and display in view and then 5 record and display in view as 10 record without load (Initialy loaded) previous 5 record again with new one

DEVENDRA MILMILE70 reputationPosted Jul 29, 2019, 3:19 AM EDT
Amit MohantyRank #112 · 20K reputationPosted Jul 30, 2019, 12:53 AM EDT
Ex : On your page load it will fetch data from the below query.
Remember always increase the NEXT value when you click on See More.. But in this process every time you have to hit the server. For this you can store all data to datatable and then use Skip() AND Take() properties of datatable.
Ex:
DEVENDRA MILMILE70 reputationPosted Jul 30, 2019, 1:40 AM EDT
VIGNESH DHANABALAN43 reputationPosted Jul 29, 2019, 10:49 PM EDT
DEVENDRA MILMILE70 reputationPosted Jul 30, 2019, 12:13 AM EDT
VIGNESH DHANABALAN43 reputationPosted Jul 30, 2019, 1:11 AM EDT