[英]Add new row(s) dynamically in empty table using telerik grid in ASP.NET MVC
I'm just starting to use the ASP.NET MVC. 我刚刚开始使用ASP.NET MVC。
i am thinking of adding an "Add New Row" button to the top to add a new data row to the table/grid in a form. 我正在考虑在顶部添加“添加新行”按钮,以将新数据行添加到表格/表格中。
Initially, I want the grid/table to be empty, with only headers of table to be displayed. 最初,我希望表格/表格为空,仅显示表格标题。 however, if there are no data rows, the whole grid doesn't appear.
但是,如果没有数据行,则不会显示整个网格。
Is there any why by which I can do display empty table and can add new rows dynamically. 有什么原因可以显示空表并可以动态添加新行。
And at end of page I want "Submit" button by clicking on that button all the rows which I have added using "Add New Row" in the table will be added in database. 在页面末尾,我希望通过单击该按钮来“提交”按钮,我在表中使用“添加新行”添加的所有行都将添加到数据库中。
I also need option to Edit , delete each row before submitting. 我还需要选项Edit,在提交前删除每一行。
Please suggest me the way to perform the above operation. 请建议我执行上述操作的方式。
Up to your questions: 根据您的问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.