Requiredfield验证器触发验证组 [英] Requiredfield validator firing out of validation group
本文介绍了Requiredfield验证器触发验证组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含4列的网格,在添加/编辑网格中的行之前必须填充数量列。
我使用edititem模板和页脚模板上的必需文件验证器来处理/>
带有单独的验证组,并在添加/编辑按钮上单击它处理的网格..
这样工作正常..
在页面中,我有另一个按钮和网格外的另一个控件。当我点击保存网格的页脚有效性时,同时也会保存数据。
任何人都可以帮助我吗?
I have a grid with 4 columns in which amount column must be filled before adding/editing a row in the grid.
I handled this using required filed validator on edititem template and footer template
with separate validation group and on add /edit button click in the grid it is handled ..
This is working fine..
In the page I have another button and another controls outside grid. WHen I click save the footer validatior for the grid is firing but at the same time data saved also.
Can anyone help me?
推荐答案
观看以下youtube视频。它将提供解决方案。
基本上你需要区分你想用不同的validationGroup属性验证的控件。
https://www.youtube.com/watch?v=ZUCsHxBEPeg&index=24&list=PL6n9fhu94yhW1NryGv6LxX4U4b07T4RlI [ ^ ]
11:00时,我们会深入讨论这个问题。
Watch this below youtube video. It will provide solution.
Basically you need to differentiate the controls you want to validate with different "validationGroup" property.
https://www.youtube.com/watch?v=ZUCsHxBEPeg&index=24&list=PL6n9fhu94yhW1NryGv6LxX4U4b07T4RlI[^]
At time 11:00, this issue is deeply discussed.
这篇关于Requiredfield验证器触发验证组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文