BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
window.location.rel='nofollow' href = "@Url.Action("OrderPaper", "DocumentProduction")?eventID=" + event.BookingID;
Thanks
<div>
@{Html.EJ().Schedule("Schedule1")
.Width("100%")
.Height("525px")
.ReadOnly(true)
.ScheduleClientSideEvents(eve => eve.Create("onCreate")
.AppointmentClick("onAppointmentClick")
.CellClick("onCellClick")
.AppointmentWindowOpen("onAppointmentWindowOpen"))
.AppointmentSettings(fields => fields.Datasource((IEnumerable<object>)ViewBag.dataSource)
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.EndTime("EndTime")
.Description("Description")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule"))
.Render();
}
</div>
<script language="javascript" type="text/javascript">
function onCellClick(args) {
args.cancel = true;
}
function onAppointmentWindowOpen(args) {
args.cancel = true;
}
function onCreate(args) {
}
function onAppointmentClick(args) {
//ajax post to call the controller action
$.ajax({
type: "POST",
data: JSON.stringify(args.appointment),
contentType: 'application/json; charset=utf-8',
//url: "DocumentProduction/OrderPaper",
url: "@(Url.Action("OrderPaper", "DocumentProduction"))"
});
Controller:
[HttpPost]
public JsonResult OrderPaper(Appointment data)
{
return Json(data);
}
}
</script>