0

是否可以在内联编辑中触发 beforshowform 事件,因为根据 wiki,我无法在使用选项 editformbutton:true 在内联编辑中显示表单之前找到任何要调用的解决方案。任何帮助深表感谢

4

1 回答 1

1

内联编辑不显示任何形式。因此在内联编辑模式下无法使用beforeShowForm 。

你写了关于editformbutton: true. 因此,您可能会使用formatter: "actions"该属性。如果您确实使用表单编辑。您可以在选项内​​指定任何表单编辑editOptions选项(请参阅文档)。所以的用法formatter: "actions"应该如下所示

formatter: "actions",
formatoptions: {
    editformbutton: true,
    editOptions: {
        beforeShowForm: function ($form) {
            alert("In beforeShowForm");
        }
    }
}
于 2013-05-13T05:58:28.540 回答