The following menu item will open Edit.aspx page in a modal dialog :
<DayPilot:MenuItem Text="Open" Action="JavaScript" JavaScript="dialog().showUrl('Edit.aspx?id=' + e.value());" />
This is the modal helper function (you can use it to configure the modal window properties):
function dialog() {
var modal = new DayPilot.Modal();
modal.top = 60;
modal.width = 300;
modal.opacity = 70;
modal.border = "10px solid #d0d0d0";
modal.closed = function() {
if(this.result == "OK") {
dps1.commandCallBack('refresh');
}
dps1.clearSelection();
};
modal.height = 250;
modal.zIndex = 100;
return modal;
}
}