[avascript]验证Gridview页脚复选框
问题描述:
[Asp.net/Vb.Net]如何使用Java验证我的gridview页脚复选框.
我有一个带有8个复选框的页脚的gridview-(chkActive1,chkActive2,..... chkActive3)-我想要的条件是-用户需要选中至少1个复选框,否则事务将不允许. >
谢谢..
[Asp.net / Vb.Net] How can I validate my gridview footer checkbox using Javascript.
I have a gridview with footer having 8 checkboxes -(chkActive1,chkActive2,.....chkActive3) - The condition I want to have is - The user need to check atleast 1 checkbox or else the trasaction would not allow.
thanks..
答
您可以向footer的每个受控单元中添加一些clientCode. (可以是触发器或新属性)
这段代码可以执行一个Javascript函数,该函数在检查所有受控单元格之后,启用或禁用引发交易的按钮.
You can add some clientCode to every controlled cell of the Footer. (It can be triggers or new properties)
This code, can execute a Javascript function that after check all controlled cells, enables or disables the button to raise the transaction.