Kendo Grid - Click事件在Chrome中不适用于具有comobox和输入的列

时间:2013-03-19 17:41:20

标签: kendo-ui kendo-grid

我有一个kendo网格,其中一列有一个comobobox和一个输入。输入的On click事件在IE和Firefox中有效,但在Chrome中不起作用。 OnaBai帮助创建了以下的jsFiddle,我用它的方式修改了它。 http://jsfiddle.net/ehnSq/17/

请注意,如果单击chrome中的图像,它只会关闭单元格。在IE或Firefox中,您可以单击按钮并获取警报。

这是我的专栏编辑。

$('<input data-text-field="CustomerName" data-value-field="CustomerId" style="width:175px" data-bind="value:' + options.field + '" class="k-combobox"/>')
        .appendTo(container)
        .kendoComboBox({
            autoBind: false,
            filter: "contains",
            dataSource: customerData,
            placeholder: strings.EmptyDropDownMessage,
            dataTextField: "CustomerName",
            dataValueField: "CustomerId"
        });
    $('<input type="image" class="k-icon-addcustomer" src="../Images/Add2.png" title="' + strings.AddCustomerToolTipText + '" />')
        .appendTo(container);

    $(".k-icon-addcustomer").on("click", function (evt) {
        evt.preventDefault();
        alert("Code Needs to Go Here");
    });

这将在IE和Firefox中运行,我很遗憾为什么不会在chrome中触发click事件。

0 个答案:

没有答案