MVC Bulk Edit - Examples

Good, so this is an alternative to this.

I am trying to create an MVC application using LinqToSql, which allows bulk editing of data on one page.

Imagine a simple table element with ItemId, ItemName, ItemPrice as fields.

There are many examples of extremely simple MVC applications that show you a list of these items with an edit button next to each and an add button at the bottom.

From a user interface point of view, I find it very time consuming when a lot of data needs to be entered / updated.

I’m behind one page containing the names of the elements and prices in text files that can be edited at a time, and then one “Save” button to update the data.

I have seen several examples that perform the various steps of this, but have not yet found one that implements the complete solution. In particular, interaction with Linq.

I have several methods that I have tried, everything works, however, my gut feeling tells me that my methods "smell" and therefore I would like to see some examples of how other people tried to do this.

So, simply, my question is: can someone provide some links to some examples?

+3
source share
3 answers

, , jQuery jsonResult . jsonResult , ItemId, ItemName, ItemPrice , . jsonResult w/jQuery : http://www.dev102.com/2008/08/19/jquery-and-the-aspnet-mvc-framework/

, , - , , . : http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx -, , , , .

0

, MvcContrib FluentHtml. , FluentHtml. , .

LinqToSql, ( ) LinqToSql . , , .

+3

What is your goal exactly, are you trying to make a series of information at the same time? Or you just don’t want your page to come back every time you change something. In any case, jQuery is your best bet. If you want to do everything in one pass, it will be difficult if you do not use the jQuery control, which will do it for you. There are some excellent ones like Flexigrid .

0
source

Source: https://habr.com/ru/post/1702634/


All Articles