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

Questions Tagged how-to

Add / Edit Events save to database

I downloaded DayPilot lite 2.0 and I am trying to integrate it our Visual Studio ASP.net 2.0 with c# project and SQL Server database to verify before we migate to Visual Studio 2012 in about 5 months...

Set dps.startDate and dps.days via javascript

Answered: You should call .update() after changing startDate or days. This is an example from the the navigator integration demo: http://javascript.daypilot.org/demo/scheduler/navigator.html See onTimeRangeSel...

How to prevent event dragging and resizing

Answered: You should set the .moveEnabled property on the DayPilot.Event.data object, not on DayPilot.Event directly: var e = new DayPilot.Event({ start: "2014-03-25T00:00:00"), end: "2014-03-25T12:00:...

Manual add menu item in DayPilotMenu

Answered: You can specify the menu items in the code behind using DayPilotMenu.MenuItems property: protected void Page_Load(object sender, EventArgs e) { DayPilotMenu1.MenuItems.Clear(); // <DayPilo...

Context Menu for multiple selection in DayPilotMonth

Hi.. Is it possible to show Context Menu on the right click for multiple selection in DayPilotMonth? I have set for DayPilotCalendar, it works.. but not for DayPilotMonth.. Here the properties that I...

DatasourceID return as string vaule

Basically i used they following code to get the string in the cell field EventInfo ei = DayPilotCalendar1.SelectedEvents[0]; string evnt = ei.Text; But i would like to get the DatasourceID of the fie...

How to preserve calendar data on page?

Actually when I select calendar date then calendar then calender data did not show on page. Pls help to solve this.

How can I show calendar sunday to saturday in daypilot month calendar?

Answered: Use WeekStarts="Sunday". See also: http://doc.daypilot.org/month/first-day-of-week/

How to move an event programmatically?

Answered: If you modify the event in .events.list and call update() it should be updated properly (as all events will be redrawn as part of the update). See also: http://api.daypilot.org/daypilot-scheduler-upd...

Passing Data to OnEventMove with e.Data

Answered: e.Data holds custom data sent from the client side when invoking the EventMove event manually using .eventMoveCallBack(). See also: http://api.daypilot.org/daypilot-scheduler-eventmovecallback/ If yo...

How to set color multiple selection in DayPilot Month

Answered: You can use CellSelectColor property to specify custom cell selection color. This is one of the few elements that can't be styled using the CSS theme. It will be added to the themes soon.

Export WYSIWYG

Answered: For true WYSIWYG export including CSS you need to use a browser. Take a look at PhantomJS: http://phantomjs.org/ It works very well but it's a standalone process (no native .NET support).

DayView change the start date to dynamically get value from calendar control

Answered: 1. If you want to use <asp:Calendar> control you will need to place both controls inside an UpdatePanel. In the Calendar.SelectionChanged event handler, call: DayPilotCalendar1.StartDate = Calendar...

My big font size text cannot display all text because timing is too short.

Answered: You can insert custom HTML into the event cell so it will add a scrollbar (see overflow: auto). You can also increase the cell height using CellHeight property. See also: http://doc.daypilot.org/cale...

How to set DayPilot calendar DayBeginsHour and DayBeginsHour dynamically

Answered: Not all properties are synchronized during the CallBack update - forcing the full update using DayPilotCalendar1.Update(CallBackUpdateType.Full) doesn't help. 1. You can place the Calendar control in...

Using div in bubble

Answered: It looks like your styles use position: absolute. This causes the bubble HTML content to be taken out of the page flow - it doesn't extend the bubble div height. Try using position: relative instead.

Is DayPilot right for this job?

Answered: There are three views/controls that will let you display one cell per day: 1. Navigator (a small monthly calendar that usually serves as a date picker) http://doc.daypilot.org/navigator/ 2. Monthly e...

How to change colour for different days for the column events?

Answered: In the current release (4.1), you will have to use e.InnerHTML in BeforeEventRender event handler to insert a div with a custom background color specified. The next release will fix apply the color s...

How to change the column text header name?

Answered: There is no built-in mechanism for customizing the column header in the Lite version. You will have to modify the source code.

var modal = new DayPilot.Modal(); JavaScript runtime error: Object doesn't support this action

Answered: Please check that the modal.js script is included properly. You can download it here: http://code.daypilot.org/81367/daypilot-modal Also, make sure that it is initialized using the new keyword: var...

adding additional attributes to a resource ?

Hi! I want to add f.a. "resourcetype" to a resource. And then, i want to read this attribute when the user drop an event, f.a. in the method "onEventMove". Is this possible? THANKS!!! Daniel

Problem with starting on the first day of the week

Answered: I added the day of the week to the method and it worked: dp.scrollTo(new DayPilot.Date().firstDayOfWeek(1));

External Drag and Drop

Hello, when I set below setting DayPilotScheduler1.ViewType = DayPilot.Web.Ui.Enums.Scheduler.ViewTypeEnum.Days and Drag even over daypilot scheduler giving "TypeError: this.rows[e.part.dayIndex] is ...

Having issue for daypilot calendar to display database values based on the date and time from database

Answered: The START_DATE and END_DATE fields are correct but why do you store time separately in START_TIME and END_TIME? The type of START_DATE is "datetime" and it will allow you to store both date and time ...

Changing start date of event

Answered: Changes of the key properties (id, start, end, resource, text) doesn't have an immediate effect because it would cause problems if you modified events that are already visible in the calendar/schedul...

Show html bubble on event click in Scheduler

Answered: Using DayPilot Pro 7.7.787 and later (see the sandbox at http://javascript.daypilot.org/sandbox/) you can do this: dp.onEventClicked = function(args) { new DayPilot.Bubble().showHtml("...

Deleting event

Answered: Yes, there is no built-in onEventDelete event. You can call dp.events.remove(e) and then notify the server: dp.events.remove(e); $.post("delete", { e: e.id() }, function() { dp.message("D...

asyncpostbacktrigger with daypilot navigator

Answered: The navigator fires two events: 1. TimeRangeSelected when you click a date 2. VisibleRangeChanged when you click "next" or "previous" links at the top You need to set TimeRangeSelectedHandling to "Po...

Display custom string in time headers

Answered: You can customize the header HTML using onBeforeTimeHeaderRender event handler: dp.onBeforeTimeHeaderRender = function(args) { if (args.header.level === 1) { args.header.html = args.header....

How to change the code to display varchar and date type data instead of two datetime type for the daypilot calendar?

Answered: If you want to customize the text that is displayed in the event box you should use the BeforeEventRender event. protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderE...
Previous Questions 2011-2040 of 3052 Next