0

dhtmlx在我的 MVC 应用程序中使用调度程序。

我添加了一个自定义按钮,它只是一个操作的链接。该按钮在不处于只读模式时可以正常工作。我的问题是,当灯箱处于只读模式时应该使用这个按钮,并且由于某种原因,在这种模式下按钮似乎被禁用。该按钮出现,但没有将我链接到我需要去的地方。

编辑:

我如何添加自定义按钮:

scheduler.config.buttons_right = ["dhx_delete_btn", "enroll_button"];
scheduler.locale.labels["enroll_button"] = "Enroll";

我的按钮事件:

scheduler.attachEvent("onClick", function(id, e1){
    scheduler.attachEvent("onLightboxButton", function(button_id, node, e){
        if(button_id == "enroll_button"){
            window.location = "/Calendar/Enroll?id="+id;
        }
    });
})
4

0 回答 0