Questions Tagged how-to
EventMoveHandling=javascript?
Answered: Kevin, You can try this:
EventMoveJavaScript="eventMove(e.start(), newEnd)"
In this event handler the following variables are available: * e - DayPilot.Event object * newStart - DayPilot.Date obj...
Culture/Localization support for DayPilot MVC scheduler
Answered: At this moment it uses the culture of the current thread. I.e. you can set it globally in web.config:
<configuration>
<system.web>
<globalization culture="en-US"/>
</system.web>
...
Multiple Schedulers in one page
Answered: Each scheduler will be represented by a special object on the server side and also on the client side. Using two schedulers on the same page should be no problem.
events not displaying in daypilot Clander lite
the same code used in daypilot pro it is working but when the code used in daypilot calender lite the calender is displaying but the events not displaying
Remove/transparent event border
Answered: You should be able to use a custom CSS class for this special event (set e.CssClass in BeforeEventRender event handler). Since build 7.4.2948 you can use CellMarginBottom property to specify minimal ...
Within 15 minutes
Answered: I believe what you are looking for is inside the <daypilot:daypilotcalendar ....CellDuration="15"..../>
How to add further subdivisions between time
Answered: If you are referring to the Scheduler, what you are looking to do is inside the <daypilot:daypilotcalendar....CellDuration="5"..../>
Focus calendar or a scheduler on a selected date outside of the control
Hi I can't find how to focus the calendar or a scheduler on a selected date outside of the control itself. The Calendar control uses a parameter as @Start. Is it possible to have that date set to ano...
How to update Scheduler data using ajax/javascript?
Answered: You can use the client-side API to modify the .resources array: http://api.daypilot.org/daypilot-scheduler-resources/ Then call .update() to refresh the scheduler: http://api.daypilot.org/daypilot-sc...
Modal does not exist
Hi, I have placed a scheduler on my page and am trying to walk through the tutorial of the hotel room project. I am working in VS2010 (webforms) and have created a new App_Code folder and placed the ...
Scheduler - select TimeRange with strg or shift key
Hello, I want to select a TimeRange with the strg oder shift key. I don't use the solution with the popup to enter a start and end date. I want that the user select the range with the strg oder shift...
Resources backcolor
Answered: If they have UNIQUE subject names, you can change the background color of them in your BeforeEventRender using a case statement based on what is in the subject. Example I have for you, I work with ph...
Context Menu Styling - Not working
Answered: The menu CssClassPrefix syntax has been updated recently to match the other other controls. If you replace CssClassPrefix="menu_default_" with CssClassPrefix="menu_default" (note the missing last und...
How To add more than one datafield to DayPilot Scheduler
Answered: You can add extra fields using DataTagFields. It accepts multiple field names, separted by a comma. But you don't need to explicitly add these fields - you can access the original event object using ...
How To generate Flowchart ?
Hi guys...i want to create A flow chart from data stored in my Project Management module, but i colud found any suggestion how? i want to generate Flowchart in C# programatially (not using any Tool) ...
help me Create New Resource using dialog daypilot Pro
i want using Dialog create new Resource and save to database SQL after refresh and show it
Scheduler: How to Keep TimeHeaders Visible When Scrolling Down
Answered: The Scheduler has a built-in scrollbar that will allow you to scroll the time grid while keeping the time headers in place. You need to adjust the control height using HeightSpec and Height propertie...
Reccurence problem in month view (render)
Answered: When selecting the recurring events you need to include all recurrence definitions from the past as well. See also: http://code.daypilot.org/34377/shift-scheduling-tutorial-asp-net-sql-server-c-vb-ne...
DayPilotMonth EventClick Function
hi, I want to ask is the example that you have for DayPilotMonth is when clicking the event on the calendar, a popup will appear. Instead of a popup, I want it to appear a MultiView. But the DayPilot...
Microsoft JScript runtime error: Unable to get value of the property 'rows': object is null or undefined
Hi, Daypilotcalendar is producing the above javascript error after it is rendered. It is mainly occuring when i am trying to use the scroll bar in the page. How can i solve this.. thanks in advance
DayPilotMonth Calendar
Answered: DayPilotMonth inherits from System.Web.UI.WebControls.DataBoundControl which handles the DataSource processing. DayPilotMonth just reads the supplied items. It doesn't detect the actual DataSource ob...
Event rendering different on Chrome
Answered: If you don't use EventSortExpression it will be sorted using an equivalent of "start asc, end desc". If both event start and end are identical then the result is not guaranteed. It turns out that IE ...
Assign the column name to daypilotcalendar.eventBackColor in pro
Answered: You need to use BeforeEventRender event handler:
protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
e.BackgroundColor = (string) e.DataItem["colo...
Clearing all the event of Daypilot
Answered: Server side:
DayPilotScheduler1.DataSource = null;
DayPilotScheduler1.DataBind();
DayPilotScheduler1.Update();
Client side:
dps.events.list = [];
dps.update();
Dynamic Event Loading with Dynamic Resource Tree Loading - Use both?
Answered: There was a bug which is fixed now in the latest sandbox build (7.4.2900): http://www.daypilot.org/sandbox/ Please let me know if the problem persists.
Time on y-axis and Users on x-axis in daypilotscheduler
Answered: DayPilot Scheduler has resources/users on y axis and time on x axis by definition. It's not possible to switch the axes. You can use the Calendar switched to Resources mode (i.e. custom columns that ...
Add Columnb/Attributes
Answered: In BeforeEventRender event handler, you can reach the original data item using e.DataItem property:
e.DataItem["field1"] // field1
e.DataItem.Source // the original object
e.DataItem is access...
Custom context menu when right-clicking on empty space in Scheduler
I am using Daypilot for ASP.NET MVC, specifically the Scheduler. I set the ContextMenuSelection property of the Scheduler to show a context menu when a user right-clicks on an empty space in the sche...
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...