Andrei
Andrei

Reputation: 44620

ASP.NET MVC 4 WebGrid. Load entities from Database

Should I pass the whole list of entities from Database to a WebGrid to have right paging and sorting functionallity?

What if my database entities list is extremely large?

UPDATE: I would suggest MvcContrib Grid for everybody. It is very flexible and way better than standard one.

Upvotes: 1

Views: 702

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039238

Should I pass the whole list of entities from Database to a WebGrid to have right paging and sorting functionallity?

No, of course not, that would be catastrophic. You should implement paging on the server. And here's another article on MSDN you may find useful.

Upvotes: 2

Related Questions