How to edit tabular data (ASP MVC)

后端 未结 4 740
情歌与酒
情歌与酒 2021-02-05 21:27

I need to be able to edit a table of data in the browser.

I have seen in MVCContrib there is a HTML helper to render out a table. Useful... but what about if I want the

4条回答
  •  面向向阳花
    2021-02-05 21:51

    Last night I implemented a simple solution: form + table inside, using input fields in the cells with naming convention as described in Phil Haack's blog (thanks to @BengtBe for link).

    It's working but its a bit fiddly (e.g. adding rows with jquery requires me to work out the next unused index).

    So I am still looking for more solutions.

    One I have discovered is the extjs library which provides a very rich grid. I have yet to work out whether there is an easy way to post back the grid data to one of my controller actions yet though...

提交回复
热议问题