集成Ext.grid.panel验证和Ext.data.Model.validations [英] Integrating Ext.grid.panel validation and Ext.data.Model.validations

查看:201
本文介绍了集成Ext.grid.panel验证和Ext.data.Model.validations的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ExtJS3中完成了相当多的开发工作之后,我一直在学习ExtJS4。我很喜欢新的Ext.data.Models,但是我很想将这些验证与Ext.grid.Panel中的验证功能集成。

I've been learning ExtJS4 after having done quite a bit of dev in ExtJS3. I'm quite intrigued by the new class Ext.data.Models, but I would love to integrate these validations with the validation function in Ext.grid.Panel.

可以任何人指出我在Grid面板中使用Ext.data.Model的validations属性的任何示例?

Can anyone point me in the direction of any examples of using the validations property of Ext.data.Model in a Grid panel?

我已经尝试将验证添加到模型并将无效值放在网格中,但似乎并没有引起错误或正常的红线。

I've tried adding the validations to the model and putting invalid values in the grid, but it doesn't seem to throw an errors or the normal red lines.

任何想法?

推荐答案

目前不支持对网格数据进行模型验证。

Model validation against grid data is not supported out of the box currently.

这里 是一个用于模型验证表单域的工作扩展。

Here is a working extension for model validation against form fields though.

这里 是对网格进行模型验证的不完整尝试(您要做什么)。

And here is an incomplete attempt for model validation against a grid (what you were going for).

这篇关于集成Ext.grid.panel验证和Ext.data.Model.validations的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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