如何在MVC中添加网格中的行 [英] How to add rows in grid in MVC

查看:77
本文介绍了如何在MVC中添加网格中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我初学mvc ..我需要开发采购订单表格..我有文本框和网格下面。我在网格中添加了更多项目。如何在网格中添加项目。

该类型网格的任何js或插件..



我尝试过:



我有文本框和网格下方。我在网格中添加了更多项目。如何在网格中添加项目。

Dear Friends,

I am beginner to mvc.. i need to develop Purchase Order form.. I have text boxes and below grid. I add more items in grid to po. How to add Items in grid.
any js or plugins for that type of grid..

What I have tried:

I have text boxes and below grid. I add more items in grid to po. How to add Items in grid.

推荐答案

MVC中的网格网格只是TR和TD(行和列)的集合,从概念上讲,您需要创建一个空的行(TR)并在webgrid中添加它,你可以在div中使用部分视图,显示属性为'none',当你点击Add item然后在jQuery的帮助下将display属性设置为block

见以下链接了解更多详情

使用MVC4在WebGrid中添加新行 [ ^ ]
web grid in MVC is nothing but a collection of TR and TD (rows and columns), conceptually you need to create a empty row (TR) and add it in webgrid, you can use Partial view in a div with display property as 'none', when you click on Add item then set the display property to block with the help of jQuery
see below link for more details
Add a new Row in WebGrid using MVC4[^]


这篇关于如何在MVC中添加网格中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆