Questions Tagged mvc
how to edit create events with recources ?
how to edit create events with recources ? can you give us examples with recouces
Start displaying Monthly calendar by the date of the current day
Answered: nevermind, Looks like it's a pro feature...
How to pass date from partial view to controller in MVC4?
Hi I want to pass the data from partial view to controller My Partial view Code @Html.Label("Area" , new { @class = "control-label" }) @Html.TextBoxFor(model => model.Area, new { @class = "form-contr...
attributes like name and project codes
Hello, is there a mechanism to capture other attritbutes from user, Errors in does not work with the version on your site in VS 2015 .NET 4.6 thanks
How to disable daypilot scheduler?
Answered: Yes. There are two options: 1. You can turn off individual actions using the *Handling properties. Example:
dp.eventClickHandling = "Disabled";
dp.eventMoveHandling = "Disabled";
2. You can also...
How do I use a date time after TimeRangeSelectedJavaScript?
Answered: The start of the selection is available in "start" variable in TimeRangeSelectedJavaScript. It is a DayPilot.Date object.
TimeRangeSelectedJavaScript = "document.location='Bokabord2?startingtime=' ...
execute a javascript function after commandCallBack success
Answered: I recommend relying on the Navigator to request the events using the standard mechanism: 1. Let the "Next" button change the navigator only:
<a href="#" id="next">Next</a>
<script>
$("#next")...
Loading Completed Event?
Answered: There is a built-in element ("loading label") that will be displayed if a callback takes more than about 100ms. You can set the label HTML using LoadingLabelText property. It is displayed in the uppe...
Rows Filtration in Scheduler
Answered: It's quite possible that the version you are using doesn't support row filtering. As you can see in the documentation (https://doc.daypilot.org/scheduler/row-filtering/) the row filtering is supporte...
Planning to Purchase DayPilot Pro for ASP.NET MVC (OEM Start)
Answered: It looks like you might be referring to this question: http://forums.daypilot.org/Topic.aspx/3066/increase-cell-width-based-on-number-of-events I understand the requirement but I'm afraid there is no...
Resource start time format in scheduler
Answered: When you specify the data source for the Gantt columns it will take the source data and display them using the default format. In case of DateTime fields, it is DateTime.ToString() method. This metho...
Display Year with Next To Month
Answered: Unfortunately the Lite version only supports the "MMMM d" format.
Increase Cell Width based on number of Events
Answered: Unfortunately this scenario is not supported. You can define a custom timeline (http://doc.daypilot.org/scheduler/timeline/) and set the column width as needed but the events will always be displayed...
Popup don't go away after Create
Answered: You can find a working example of the "new event" modal dialog in the following tutorial: http://code.daypilot.org/59860/asp-net-mvc-5-event-calendar The calendar is configured to display the modal d...
Null Reference Exception on scheduler CallBack
Answered: Which version of DayPilot do you use? One of the recent sandbox builds had a bug which had symptoms like this. It is fixed in the latest release (8.1.5819): http://mvc.daypilot.org/demo/Scheduler/ Le...
Backend ActionResult 'Events' not running?
Answered: If you open developer tools in Chrome (Ctrl-Shift-I) and reload the page you will see all AJAX requests in the Network tab. You should be able to check: 1. If the request has been made 2. What is the...
Change Calendar Data based on Dropdown
Answered: In ASP.NET MVC you can request a server-side refresh using Command event handler. 1. Store the filter (the selected user) in the clientState property and invoke the Command event handler:
var selec...
Event Move / Resize Refresh Slow
Answered: You can switch to "Notify" event handling to make it faster. If you use EventResizeHandling = CallBack the sequence is as follows: 1. The user finishes resizing. 2. The calendar/scheduler sends a req...
Cannot implicitly convert type 'string' to 'DayPilot.Web.Mvc.Events.Gantt.RowClickHandlingType'
Answered: There is now a new guide on row selecting available in the documentation: http://doc.daypilot.org/gantt/row-selecting/ The latest sandbox build (8.1.5816) fixes a few related issues (such as the miss...
New row is creating automatically
If I am creating a new appointment, then the day daypilot scheduler is creating a new row automatically as shown in the attached image. But it is not occuring in every time. Is it a bug? How to fix i...
Events in a same cell
Answered: You can do this using UseEventBoxes=Never option: http://doc.daypilot.org/scheduler/exact-event-duration/ Just note that this is not DayPilot Lite, but DayPilot Pro. I'm removing the "lite" tag.
Sheduler + Jquery Tabs scaling problem
Answered: The latest DayPilot Pro for ASP.NET MVC version (8.1) includes an auto-detection mechanism that waits until the Scheduler becomes visible and fixes the layout. It looks like you might be using an old...
Appoinments are not syncing in daypilot scheduler
Answered: If you load the data from the same source and update the source correctly both instances should display the same data. If you want to force an update from the client side you can use dp.commandCallBa...
Incompatible Client Script Version
Answered: It looks like an old DayPilot.Mvc.dll is cached somewhere. The latest version of DayPilot.Mvc.dll (8.1.5813) works with client script version 1944. Client script version 707 is used by build 7.7.5654.
Scheduler in tab control
Answered: When you initialize a Scheduler that is in a hidden part of a page (like in case of a hidden tab) it is not possible to initialize the dimensions properly (all dimensions returned by the browser are ...
How to clear time range selection in OnTimeRangeSelected with TimeRangeSelectedHandlingType.Callback
Answered: Normally the time range selection gets cleared if you call Update() on the server side. If you don't do that for some reason you need to switch to JavaScript event handling and clear it manually:
...
Multiple Lines in Calendar Event Item
Answered: Yes, just modify the e.Html property in OnBeforeEventRender as needed. See also: http://doc.daypilot.org/calendar/event-customization/
Image/PDF Export for ASP.NET MVC
Answered: The next MVC version (8.2) will include client-side PNG export support. You can create the PDF on the client side using jsPDF (http://mrrio.github.io/jsPDF/). It will let you insert the exported PNG ...
Disable parent resources from showing child events
Answered: The parent resources don't display events that belong to the child resources. However, a resource will display events that belong to another resource if: the resource ID is the same the resource ID i...
Problem to load events from list of self defined objects instead of EF6 object
Answered: It might be necessary to define the object items as properties rather than simple fields:
public class DayPilotEvent
{
public string SysId { get; set; }
public DateTime AssignedDate { get;...