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 MILMILEPosted Jul 30, 2019, 5:40 AM
VIGNESH DHANABALANPosted Jul 30, 2019, 5:11 AM
Amit MohantyPosted Jul 30, 2019, 4:53 AM
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 MILMILEPosted Jul 30, 2019, 4:13 AM
VIGNESH DHANABALANPosted Jul 30, 2019, 2:49 AM
DEVENDRA MILMILEPosted Jul 29, 2019, 7:19 AM