网格上的验证错误未出现
我已通过 WCF RIA 服务在 Silverlight 中绑定了 DataGrid,并拥有自定义的仅服务器端验证器。当我以违反这些自定义验证的方式编辑网格并单击 SubmitChanges 按钮时,错误不会立即出现。如果我在字段周围单击,它们就会出现,但我认为它们应该立即出现。如果我让我的自定义验证器共享,它可以在客户端正常工作。我是否需要调用一个方法来使这些验证错误出现?
I have bound a DataGrid in Silverlight via WCF RIA services and have custom server-side only validators in place. When I edit the grid in a way that violates these custom validations and click a SubmitChanges button, the errors do not appear immediately. If I click around the field they will appear, but I thought they were supposed to show up right away. If I make my custom validator shared it works client-side without an issue. Do I need to call a method to make these validation errors appear?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生这种情况是因为错误与特定行相关。通常,对于客户端验证器,在解决错误之前您无法离开当前行。
This is happening because errors are tied to a specific row. Normally with client-side validators you cannot leave the current row until you have addressed errors.