Questions Tagged mvc

Adding Holidays on for ASP.NET tutorial

Answered: In ASP.NET WebForms , you can indeed use the BeforeCellRender event. You just need to check whether the current cell falls on one of the defined holidays. Example: // Define an array of holidays priv...

Calendar control; showing only busniess hours

Answered: The MVC Lite (open-source) version is no longer under active development. I recommend switching to the JavaScript Lite version. The JavaScript version lets you set the Calendar height to show only bu...

Dropdown field in modal form

Answered: You can load the data using fetch() or a similar function before opening the modal dialog. async function showModal(url) { const options = await fetch("/api/getOptions").then(response => response.jso...

Erro no carregamento Atividade filho

Answered: A imagem está correta, a atividade que está no Píer 1 lado Mar está com início no dia 03/08/2021 as 00:00 hora, isso só está acontecendo quando ela vai para o evento filho, se essa mesma atividade fo...

Business hours begins and End where can I set them

Answered: What version of DayPilot Pro do you use? If it doesn't work with the latest version (2021.2.6054), could you please post your config? The following OnInit() seems to work fine with the latest version...

Load event not loading child only

Answered: You need to use a different resource ID for the parent rows. An event will be displayed in all rows where the id matches the event resource id (resources[].id === events.list[].resource).

Asp.net MVC scheduler not showing AM/PM format

Answered: You can try this: TimeHeaders = new TimeHeaderCollection() { new TimeHeader(GroupBy.Month), new TimeHeader(GroupBy.Day), new TimeHeader(GroupBy.Cell, "tt"), },

Programmatically Change DayPilotNavigator

Answered: I'm not sure if that's what you are looking for but you can set the initially-selected date using DayPilotNavigatorConfig.SelectionStart property.

Disable range selection Calendar

Answered: In DayPilot Pro for JavaScript, you can do this using onTimeRangeSelecting event handler: https://api.daypilot.org/daypilot-calendar-ontimerangeselecting/ Unfortunately, it's not available in the Lit...

Wrong Product Purchased

Answered: Your email might not have arrived, sorry for the troubles. Can you please contact sales@daypilot.org and include a reference to this forum question?

License

Answered: The tutorial is available under a trial license which is limited to testing and evaluation. If you want to use it in your project you'll need to buy a license: https://aspnet.daypilot.org/buy/

Trial ASP.net MVC pro will not run at all

Answered: The demo project in the download packages uses MVC4 which needs to be installed globally using this link: https://www.microsoft.com/en-us/download/details.aspx?id=30683 See also: https://mvc.daypilot...

Disable Link Creation per event

Is there a way to disable link creation per event? I would like something like the way move, resize, etc... can be disabled now on js side. ie: event.data.moveDisabled = true. The best would be if ev...

How to create a context menu submenu in MVC

Answered: The submenus are now supported in the MVC version as well in the latest sandbox build (2019.4.6005): https://mvc.daypilot.org/sandbox/ You can specify the submenu items using Items property of MenuIt...

How to implement a "Previous" and "Next" buttons

Answered: You can take a look at the main MVC Scheduler demo: https://mvc.daypilot.org/demo/Scheduler/ It includes Next/Previous buttons which use commandCallBack() method to invoke Command event on the server...

How to access BeforeEventRenderArgs in MVC

I do not see BeforeEventRenderArgs in the object browser, so can not use sample code in https://doc.daypilot.org/calendar/event-customization/ I have the following using statement "using DayPilot.Web...

Blazor Version?

Answered: We're playing with the technology to see how it could be used to improve DayPilot. At this moment, I recommend using the JavaScript version for ASP.NET Core: https://javascript.daypilot.org/ There ar...

Is it possible to make paging in DayPilot scheduler

Answered: There are two options: 1. You can limit the current view using StartDate and Days properties and switch to the next/previous "page" using custom buttons: https://doc.daypilot.org/scheduler/next-and-p...

How to filter characteristics of an event?

Answered: Please take a look at the clientState/ClientState properties that I have suggested here: https://forums.daypilot.org/question/4794/how-can-i-update-the-view-after-changing-the-backendurl-pro See also...

How can I remove the scroll?

Answered: Please see the height configuration options here: https://doc.daypilot.org/calendar/height/ The "BusinessHoursNoScroll" and "Full" values of HeightSpec will display the Calendar component without the...

How can I remove the demo tag?

Answered: You need to replace DayPilot.Web.Mvc.dll and daypilot-all.min.js files in your project with the ones from the full version zip file.