search envelope-o feed check
Home Unanswered Active Tags New Question

Questions Tagged asp.net

Event test

Answered: The event text gets HTML-encoded (as a protection against XSS attacks) and then it is treated as HTML. That means ASCII line breaks will be ignored. If you need to insert a line break, you'll have to...

cell to into two lines or below the current line

Answered: The events will be displayed in a single horizontal line if they don't overlap. If the end date/time of the first event and the start date/time are the same the events are still considered non-overla...

Date wise Header but data rows breaks into two lines.

Answered: Thank you for posting the screenshot: https://forums.daypilot.org/question/5744/cell-to-into-two-lines-or-below-the-current-line

how to prevent the daypilot modal from closing when clicked outside?

Answered: You can do it using onClose event handler: onClose: args => { if (args.backgroundClick) { args.preventDefault(); } }

Refresh Gantt command

Answered: The Modal.Close() method uses a workaround to return the control back to the client side. Older versions may not work well - please make sure that you use the latest version of the ASP.NET WebForms h...

Automatically collapse child tasks

Answered: By default, the state of all Gantt chart groups is set to "expanded". You can keep the children collapsed by setting Expanded = false when loading tasks.

Gantt chart not showing

Answered: I recommend checking the HTTP requests using the browser developers tools, Network tab. You will see which requests fail and the responses will include an error message which may provide a hint. Most...

ScrollTo

Answered: scrollTo() is a client-side method and it can only be used on the client side, in JavaScript: https://api.daypilot.org/daypilot-scheduler-scrollto/

box.html in group mode

Answered: Unfortunately, it's not possible to change the task group inner HTML in ASP.NET.

Progress bar change color

Answered: You can use the box.barColor and box.barBackColor properties: https://api.daypilot.org/daypilot-task-data/

How do you make more than one employee run the same shift

Answered: Yes, there are many different scenarios that are not covered by this sample. To add more people to the same time and location, you can choose a solution depending on the workflow: 1. To allow more as...

Is clearSelection available?

Answered: Yes, the clearSelection() client-side method is available in the ASP.NET WebForms version as well. You can find an example in the main Scheduler demo: https://aspnet.daypilot.org/demo/Scheduler/ The ...

DayPilot Block specific resource or time

Answered: Yes, you can use BeforeCellRender event to mark cells as disabled. That will prevent all drag and drop operations: https://doc.daypilot.org/scheduler/disabled-cells/

ResizeStart / ResizeEnd not working on touch devices

Answered: This is a regression bug which should be fixed now in the latest sandbox build (2021.4.3805): https://aspnet.daypilot.org/sandbox/ Thanks for reporting the issue!

Month Event Prerender not working

Answered: You'll need to change the attribute to: OnBeforeEventRender="DayPilotMonth1_BeforeEventRender" or add "Handles" to the the method signature: Protected Sub DayPilotMonth1_BeforeEventRender(ByVal...

How to call a daypilot EventClickJavaScript on button click of ASP.NET WEBFORM - C#

Answered: Instead of trying to build the DayPilot.Event object, I recommend changing the ask() function signature so it would accept individual parameters that are available to the button click event handler.

Is it possible to get the same event of DayPilot on Gridview OnRawCommand ?

Answered: The 'e' variable holds a DayPilot.Event object. You can create it using the constructor: https://api.daypilot.org/daypilot-event-constructor/

How to call a DayPilotCalendar event on button click of ASP.NET ?

Answered: Try this: <asp:LinkButton ID="linkbtn_show" runat="server" Text="Create New Task" OnClientClick="javascript: create('2021-08-16T13:00:00', '2021-08-16T13:00:00', null);" > </asp:LinkButton>

After update 2020.4.3

Answered: This happens because some of your events use the same ID (the error message refers to "GQS217123") which is not allowed. You should make sure that the event IDs are unique.

Hotel room/floor representation

Answered: Yes, it is possible. You'd need to map the dates (e.g. the day of year part) to floors using a technique used in the ASP.NET timetable tutorial: https://code.daypilot.org/65101/timetable-tutorial-asp...

How to show the recourse image

Answered: I answer to myself Private Sub ParkingDP_BeforeResHeaderRender(sender As Object, e As BeforeResHeaderRenderEventArgs) Handles ParkingDP.BeforeResHeaderRender Dim htm As String = "<img src=data:image/...

wait message before Posting

Answered: Solved by changing to manual BIND TimeRangeSelectedHandling="JavaScript" TimeRangeSelectedJavaScript="btn_navigateClick();"

Display event when horizontally scrolling

Answered: You can turn off progressive event rendering but it will affect performance when displaying a large number of events. See also: https://doc.daypilot.org/scheduler/progressive-event-rendering/

Calendar Control not refreshing

Answered: Unfortunately, it's not clear from your example what could be wrong. I recommend starting with a working project from one of the tutorials, e.g. https://code.daypilot.org/18967/event-calendar-with-da...

Add menu item to context menu on scheduler

Answered: This should work fine - I recommend checking if your Page_Init() method is being called properly. If it is, you might be overwriting the menu items somewhere else.

Hide ContextMenu item based on logged user

Answered: You can define the context menu items dynamically in code behind in ASP.NET - use the Items property of the DayPilotMenu object.

Disabled cell still working if my event is longer on the right than disabled cells

Answered: You should check if you really disable the correct cells. The background color needs to be set separately so it's possible that you didn't disable all the colored cells. It's unlikely that the Schedu...

Resize and drag not working if ShowNonBusiness is set to False

Answered: I was using the latest version. I now found the issue on a js conflict. I'm using prototype.js that has an "any" function that was throwing an error when moving or resizing event on the scheduler. Th...

Resize and drag nor working if OnIncludeCell event is used

Answered: This seems to be the same issue as https://forums.daypilot.org/question/5371/resize-and-drag-not-working-if-shownonbusiness-is-set-to-fa

Scheduler Alignment Bug in Chrome

Answered: Unfortunately I don't see the issue in the online demo of the Lite version: https://aspnet.daypilot.org/demo/lite/Scheduler/ It might be a CSS interference issue - you can try to disable the global C...
Questions 1-30 of 2544 Next