不使用Telerik(其他第三方控件)的asp.net-mvc webgrid在线编辑 [英] asp.net-mvc webgrid inline editing without using Telerik(other Third Party Control)

查看:70
本文介绍了不使用Telerik(其他第三方控件)的asp.net-mvc webgrid在线编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是不使用ThirdParty控件(Telerik等)进行MVC + WebGrid内联编辑.如果我们单击GridView标签中的编辑动作链接",则转换为文本框和DropdownList,我们可以更改数据,然后单击更新动作链接",将数据存储在数据库和GridView中.有人对需求有想法吗?.

提前致谢.

My Requirement is MVC+WebGrid Inline Editing without Using ThirdParty Control(Telerik etc.,).If We Click Edit Actionlink In GridView Label Convert To TextBox and DropdownList We Can Change The Datas And After That Click Update Actionlink The Datas Are Stored In DataBase And GridView.Anyone Have Idea About The Requirement?.

Thanks In Advance..

推荐答案

只需在代码中添加此行即可.
Just add this line in your code..

.Editable(edit=>edit.Mode(GridEditMode.InLine))



一切顺利.



all the best..


这篇关于不使用Telerik(其他第三方控件)的asp.net-mvc webgrid在线编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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