MVC中的复选框以禁用表的行 [英] Checkbox in MVC to disable rows of the tables

查看:44
本文介绍了MVC中的复选框以禁用表的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用MVC Framework和Entity DataModel.我能够很好地执行添加和编辑"功能.

在表中,我显示数据.每行都有一个复选框.

如果用户选中该复选框,则该行需要为禁用模式或只读模式.

请帮忙.

在此先谢谢您.

Hi All,

i am using MVC Framework and Entity DataModel.I am able to do Add and Edit functionality fine.

In Table i am showing data. I have checkbox to each row.

If User check the checkbox then row need to be disable mode or readonly mode.

Please Help.

Thanks in Advance.

推荐答案

这听起来像是客户端问题,您应该使用jQuery或一些javascript库来执行此任务.

如果需要将此状态保持为状态,则还应该调用控制器,该控制器将依次调用存储库以更新和存储模型状态.

干杯.
This sounds like a client-side issue and you should likely use jQuery or some javascript library to perform this task.

If you need to persist this to the state, you should also make a call to the controller which would, in turn, call your repository to update and store your model state.

Cheers.


这篇关于MVC中的复选框以禁用表的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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