R
R
Ruslan2011-08-21 22:22:42
ASP.NET
Ruslan, 2011-08-21 22:22:42

Asp.net mvc 3 pattern for quickly creating tables with sorting and filtering?

Please tell me some quick way to create an interface for displaying tables with the ability to sort in asp.net mvc 3
So far, each table has to be done manually, programming a controller that takes as parameters the names of the columns by which it will sort and / or filter the selection, then form a request, form a model, transfer it to the view, and then pagination needs to be done. in general, it’s somehow dreary and time-consuming to do so much work for each presentation. Is there a way to automate this process somehow, for example, just list the columns ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2011-08-22
@Neir0

1) Write your own and always use it, for example, it will take 50 lines using knockout, I recently did this
2) There is a ready-made WebGrid in mvc3
3) You can use ready-made JS grids, everything is simple there, we take the model, convert it to JSON and feed it to the grid
4) A thousand examples of writing grids in MVC, you can learn something from there
5) See MVC Scaffolding, maybe there is something for autogeneration, but I don’t remember already.

D
Dmitry Sidorov, 2011-08-22
@Doomsday_nxt

Somewhere I saw an example from Microsoft - how to do this using standard tools. I can't find something. I remember that FiledTemplates were used. I can also suggest generating the necessary files using T4 ...

A
AigizK, 2011-08-22
@AigizK

Google Html.WebGrid MVC3 Also take a
look at Telerik Extensions for MVC

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question