1

我有一个正在使用的igniteui-angluar <ig-grid>,我想使用 validatiorOptions 的 checkValue 事件来验证单元格。

这是我对功能部分的设置

HTML:

<features>
    <feature name="Updating"
        event-edit-row-ending="shiftBindHandler"
        event-row-adding="addRowHandler">
        <column-settings>
            <column-setting column-key="ShiftID">
                <editor-options type="text" max-length="4">
                    <validator-options event-check-value="shiftIDValidator">
                    </validator-options>
                </editor-options>
            </column-setting>
        </column-settings>
    </feature>
    ...
</features>

这里是对应的checkValue函数

控制器:

$scope.shiftIDValidator = function (e, u) {
    console.log('Validator Called');

}

以 igniteui-angular 格式使用 checkValue 的正确方法是什么?没有太多关于这些东西的信息。关于事件处理的这一段是我能找到的关于这个主题的所有内容。

谢谢!

朱丽叶

4

1 回答 1

2

Infragistics got back to me on the issue and said it was a bug. The format above should now work for checkValue. http://www.infragistics.com/community/forums/p/92125/455601.aspx#455601

于 2014-09-19T14:20:38.943 回答