Questions Tagged asp.net
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...
DayPilotCalendar.UpdateWithMessage() not displaying message since 2020.4.3775
Answered: This issue should be fixed now in the latest sandbox build (2021.1.3785): https://aspnet.daypilot.org/sandbox/ Please let me know if the problem persists.
Gantt chart
Answered: There are two versions of DayPilot for ASP.NET WebForms DayPilot Lite for ASP.NET WebForms (open-source) https://aspnet.daypilot.org/open-source/ DayPilot Pro for ASP.NET WebForms (commercial) https:...
Hebrew calendar - from right to left
Answered: Yes, this is possible: https://aspnet.daypilot.org/demo/Calendar/RTL.aspx
Calendar hover color remains active when moving mouse between calendars
Answered: Hi Dave, This issue should be fixed now in the latest sandbox build (2021.1.3780): https://aspnet.daypilot.org/sandbox/ Please let me know if the problem persists.
DayPilot bubble is not working
Answered: The bubble is available in DayPilot Pro (paid version) but not in DayPilot Lite (open-source version). You can get an evaluation version of DayPilot Pro here: https://aspnet.daypilot.org/try/
DayPilot bubble is not working
Answered: For an example of <DayPilotBubble> usage please see the following demo: https://aspnet.daypilot.org/demo/Calendar/EventBubble.aspx The source code of the demo is in Demo/Calendar.EventBubble.aspx fil...
Scheduler date problem
Answered: Try removing the following section from Page_Load:
DayPilotScheduler1.Scale = TimeScale.Manual;
DateTime start = new DateTime(DateTime.Today.Year, 1, 1, 12, 0, 0);
DateTime end = start.AddYears(1...
Issue when rendering the scheduler
Answered: I recommend checking the data - it may contain invalid items which break the view. You can also check the JavaScript console to see if there are any errors.
Scroll to hour on button click
Answered: Changing the ScrollPositionHour value would only work on the server side, during the initial page load or during a PostBack. If you want to change the scrollbar position on the client side you'll nee...
About DayPilot library
Answered: There are two ASP.NET versions: DayPilot Lite which is open-source: https://aspnet.daypilot.org/open-source/ DayPilot Pro which is commercial and includes advanced features: https://aspnet.daypilot.o...
XSS Cross Site Scripting issue
Answered: DayPilot lets you specify raw HTML in many places to allow adding rich content and defining your own functionality. You need to make sure that any user-entered data that you use when adding custom HT...
Change locale from mm/dd/yyyy to dd/mm/yyyy
Answered: The ASP.NET WebForms version of the DatePicker always used the default date format of the current locale. However, there is now a new property called "Pattern" available in the latest sandbox build (...
Why after deploying in iis, IE11 doesn't show calendar?
Answered: Sometimes, the intranet site is configured (by group policy or in IE settings) to use IE compatibility mode which is not supported by DayPilot. This is the most common problem of different behavior w...