Questions Tagged mvc
Hide all Time Headers in Scheduler
Answered: You can use the following workaround:
function afterRender(data, isCallBack) {
dps1.showBaseTimeHeader = false;
dps1.timeHeaders = [];
dps1.update();
}
And set AfterRenderJavaScri...
Display Back to Back Events in Scheduler
Answered: 1. The combination of UseEventBoxes=Never and setting the end time to the start time of the next event should work. If you take Image 3 and set UseEventBoxes=Never, does it work as expected? 2. You s...
Problems Migrating DayPilot Lite for ASP.NET MVC 1.3 SP1 (build 1.3.395)
Answered: This error suggests that the daypilot-all.min.js file was not included properly. This file defines the DayPilot namespace - it includes all the .js files merged (common.js, calendar.js, month.js, mod...
Can I show a context menu when the user right-clicks on an open space in the Scheduler?
Answered: Yes, this is possible - you need to assign the context menu to ContextMenuSelection:
<%= Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig {
BackendUrl = ResolveUrl("~/Scheduler/Backend"...
Define URL for Event
Answered: By default there is no URL associated with the event. You should handle the EventClick event and define the required action. For redirecting it to a specified url you can use something like this:
...
How do you use EventResizeJavaScript and similar with MVC
Answered: This is not a typical scenario and that makes the solution a bit complicated. What you need to do in the JavaScript is to call the server-side handler and then make sure the request has been complete...
Events rendering 1 day back
Answered: Please try using DateTime.Date when setting the new StartDate value, e.g.
protected override void OnCommand(CommandArgs e)
{
switch (e.Command)
{
case "navigate":
D...
Refreshing of Daypilot Schedulter
Answered: After clearing the resources, it is necessary to call full update:
dpsReservations.Update(CallBackUpdateType.Full);
Please let me know if it didn't help.
How to show the different color for each type of Event (MVC doen't have e.DataItem)
Answered: It's now available in build 5528. See the sandbox: http://mvc.daypilot.org/sandbox/
Binding Calendar Events to Backend Stored Procedure Dataset
Answered: These properties should actually hold the names of the fields/columns in the list: DataIdField = "RowNum" DataTextField = "Employee" DataStartField = "Annual_Leave_Day" DataEndField = "Annual_Leave_D...
Cell Duration mis-alignment
Answered: This looks like an interference with a global CSS. Try to limit the global styles so they don't apply to the div with DayPilot. Check especially table and td styles in the global stylesheet.
AfterRender-Event MVC Calendar
Answered: Ok, I've found a solution. I overwrite the function in the document.ready. Example: $(document).ready(function () { dpCalendar.afterRender = function () { afterRenderCallback(); } });
Image Export DayPilot Scheduler
Answered: I've got. The width should be 100% and not expressed in px
DateTime localization
Hello, how do you localize the dates with the mvc release of daypilot scheduler? I have tried setting Thread.CurrentThread.CurrentUICulture and Thread.CurrentThread.CurrentCulture. It's a multilangua...
Scheduler - DayPilot.Web.Mvc Version 1.6.5417.0
Hi, is it possible to show the header text (month and year) always in the visible area, not in the middle of month (of course always in the correct area/month)? During scrolling it is often difficult...
Update partialView
Hi, I am using the right click to change my project status: "@Html.DayPilotMenu("dpsMenu", dpsm);". It's work fine, but now I want to change (or reload) a partialView I use in the same page and I can...
Scheduler: Show Business hours per Ressource
Answered: You can change the cell background using OnBeforeCellRender method:
protected override void OnBeforeCellRender(BeforeCellRenderArgs e)
{
if (e.Start.Hour > 5 && e.ResourceId == "5") {
e.B...
Instance of JsonData can't be cast to String
Answered: Hi all, I solved the issue here : I just added the line case JsonType.Array: return data[0].ToString (); default: at the end of the method, I regenerated the dll and it worked well... Strange that th...
Can I preload the Scheduler to remove the delay in events appearing when scrolling?
Answered: You can disable the progressive event rendering by using the following switch in the config: DynamicEventRendering = DynamicEventRenderingType.Disabled It will behave like this demo (WebForms): http:...
How do I adjust the header row time format in the Scheduler?
Answered: You can customize the header strings by overriding OnBeforeTimeHeader method. Just set e.InnerHtml as needed:
protected override void OnBeforeTimeHeaderRender(BeforeTimeHeaderRenderArgs...
How do I hook into when the user clicks a date in the Navigator?
Answered: You need to handle TimeRangeSelected event manually:
TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "yourHandler(start, end);"
If you want to...
How can I set CellBackColorNonBusiness when using CSS
It appears that the CellBackColorNonBusiness setting is ignored when using CSS How can I define this in CSS?
How can I remove just one event from the scheduler without having to reload all events
I have a context menu item that calls the following jscript function to remove an event function removeEvent(tgt) { //$.ajaxSetup({ cache: false }); // must turn caching off to ensure json method is ...
How do I get the date to always display in the DayPilot Scheduler no matter what the scroll position is?
By default (I guess) the scheduler is displaying the date in the header only at the center. So If I scroll too far over left or right the date is not displayed. Is there a way to make the date displa...
Forum Responses
Hi All Is anyone processing the questions posted on the forums? I posted a question on 26/11 but have had no response, looks like same situation for other unanswered questions. I'm evaluating the pro...
EventManager not found
Answered: OK I found it, you have to create this class on your own according to http://code.daypilot.org/62492/scheduler-for-asp-net-mvc-4-razor
MVC 4 Scheduler : Days & Row Heights
From the code below is t possible to identify why the row lines do not match when the scheduler is rendered. The size of the event row is not matching the size of the row header. Also, the scheduler ...
Calendar not updating
Answered: I found the problem myself, for future references - you have to update your .Columns to reflect the new date as well.
Calendar not changing with Navigator selection MVC4/Razor
I am using the 7.1.5463.1 version of DayPilot.Web.Mvc.dll I am using the scripts from 11/20/2012 I have created a sample application to demonstrate the behavior, but it is too big to upload. When sel...
Time portion of datetime displays in Event header as PM when it is actually AM
Answered: Please see here: http://forums.daypilot.org/Topic.aspx/1737/am-pm-incorrect-on-event-header-with-clock12hours-setting The fix will be included in the next release. You can fix it in Calendar.js by mo...