Hi
I’m using the Scheduler for ASP.NET MVC 3 and want to use a custom lightbox
I followed the steps in the Documentation:
i created the custom view for the new form
@model NewSchedulerViewModel
@{
ViewBag.Title = "LightboxControl";
}
<h2>New Reservation</h2>
@using (@Html.BeginForm("Save", "Reservation"))
{
<div class="control-group">
@Html.LabelFor(m => m.start_date, new { @class = "control-label" })
<div class="controls">
@Html.EditorFor(m => m.start_date)
</div>
</div>
<div class="control-group">
@Html.LabelFor(m => m.end_date, new { @class = "control-label" })
<div class="controls">
@Html.EditorFor(m => m.end_date)
</div>
</div>
<div>
@Html.HiddenFor(m=>m.id)
</div>
<div class="control-group">
@Html.LabelFor(m => m.text, new { @class = "control-label" })
<div class="controls">
@Html.EditorFor(m => m.text)
</div>
</div>
<div class="control-group">
@Html.LabelFor(m => m.PatientBirthDate, new { @class = "control-label" })
<div class="controls">
@Html.EditorFor(m => m.PatientBirthDate)<input type="submit" class="btn btn-info" value="Save" />
</div>
</div>
<div class="form-actions">
<input type="submit" class="btn btn-success" value="Save" name="actionButton" />
<input type="submit" value="Close" class="btn btn-cancel" />
<input type="submit" class="btn btn-danger" value="Delete" name="actionButton" />
</div>
}
- created the action : ActionResult LightboxControl in my controller
- added this line in my index action : sched.Lightbox.SetExternalLightbox(“Reservation/LightboxControl”, 420, 195);
and finally modified my save action
the problem is:
Scheduler doesn’t load and i get this javascript error from firebug
"NetworkError: 404 Not Found - http://localhost:6565/Assets/Plugins/Scheduler.Net/dhtmlxScheduler/dhtmlxscheduler_custom_lightbox.js"
where is this file( dhtmlxscheduler_custom_lightbox.js) i couldn’t find it .
Thank you