Questions Tagged lite
How to display half hours
I have a day sheduler where I want the shifts from 8h30 till 17h. I want it to be in cells of 0:30min. But this doesn't work. When I change the cell duration to 30 I only get 00 and 30, not 08:30... ...
Update partialView
Hi, I am using the right click to change my project status: "@Html.DayPilotMenu("dpsMenu", dpsm);". It's work fine, but now I want to change (or reload) a partialView I use in the same page and I can...
Moving events
Hi, Is it possible to move events (drag and drop) in the open source version of the Calendar? Thanks
Value cannot be null. Parameter name: collection
Answered: Dave, what's the version of DayPilot you are using? If you are not using DayPilot Lite for MVC 1.2 already I recommend switching to to because it's compiled with MVC4. http://mvc.daypilot.org/daypilo...
How to change width for first column in Timeline-View (DayPilotScheduler)
Answered: Try the RowHeaderWidth property.
Accuracy of Event Color Bar to the Event's Start/End Time
Answered: Well the best answer is to get the Pro version -- the feature I described is built-in and maintained. However, I have made some adjustments to the "calendar.src.js" file below around line 2005. Be su...
AM/PM Incorrect on Event Header with "Clock12Hours" Setting
Answered: This bug is fixed now in the latest codebase. The fix will be included in the next release. Thanks for reporting the issue!
How to Zoom out to year(s)
I have 10+ years of data and I am trying to Zoom way out in years. I am following the sample located here, http://forums.daypilot.org/Topic.aspx/454/how_to_achieve_the_zooming_feature_in_scheduler_co...
ASP.Net MVC3 -- How to update "StartDate" field from jQuery DatePicker control?
Answered: You should replace
dpc.startDate = newDateTime;
dpc.callBack2('Init');
with this:
dpc.commandCallBack("goto", { "start": start });
In the server-side OnCommand handler, detect e.Command ==...
Date and Time
Answered: You will need to join these two fields in the select command: http://stackoverflow.com/questions/700619/how-to-combine-date-from-one-field-with-time-from-another-field-ms-sql-server But I would recom...
Popup Window
Answered: In the Lite version, the start, end, and column variables are not available in TimeRangeSelectedJavaScript. You need to use {0} and {1} strings: {0} will get replaced by the time range start and {1} ...
Displaying from other table
Answered: You can customize the event HTML using BeforeEventRender event handler. The original DB row is accessible using e.DataItem property. Example:
protected void DayPilotCalendar1_BeforeEventRender(...
Calendar Day Colour
Answered: You need to replace the logic in isThereEvent() with an actual check against your data set. You will need to test for overlaps of the range define by date and date.AddDays(1) with the events. You can...
protected DataTable getData()
Answered: See a LINQ example here: http://kb.daypilot.org/56894/how-to-use-daypilot-scheduler-with-linq-to-sql/
var db = new DataClassesDataContext();
var events = from ev in db.Events where...
loadResources error
Answered: You are trying to connect to Microsoft SQL Server using SQLite ADO.NET adapter. You need to replace "SQLite*" with "Sql*".
Style day of events.
Hello, I have chosen to use the calendar control along with Daypilot as per the examples given in the package. It all works perfectly but I was wondering if it was possible and if so how can it be ac...
GetData from SqlDataSource
Answered: Yes, you can use DayPilotCalendar2.DataSourceID = "SqlDataSource1";
Mak the Event a clickable Link
Answered: Allan, The "e" object is not available in the Lite edition. You should do it like this: EventClickJavaScript="window.location.href = 'CourseDetails.aspx?CourseID={0}';" "{0}" will be replaced with th...
Asp.net MVC rezor view calender example is not run on my computer
Hi Team, I am trying to learn about Asp.net MVC rezor view calendar example on the link http://mvc.daypilot.org/mvc-3-razor-calendar-and-sql-server-tutorial-c-and-vb-net/ But this example is not runn...
Year View in Scheduler Lite
Answered: Column groups are only supported in the Pro version (CellGroupBy property for one group level and TimeHeaders for multiple group levels, see also http://www.daypilot.org/daypilot-pro-for-asp-net-webf...
source does not compile
Answered: It's now fixed in the latest release: http://www.daypilot.org/daypilot-lite-for-asp-net-webforms-3-1-sp2.html
Error - The Request must start with JSON string
Answered: You will see this error if you try to open the backend URL in a browser. In order to show the Calendar you need two URLs (corresponding to two controller actions): 1. The first one will show a view w...
DayPilot Scheduler for vb.net and SQL server
Answered: Martyn, The Scheduler in the Lite version doesn't support the built-in scrollbars and it doesn't support event moving using drag&drop. That's why you can't access SetScrollX() and EventMove event. Yo...
Source code does not compile?
Answered: It looks like the VS 2010 project is outdated. It's now fixed in the code and the fix will be included in the next release. You can try to open it through the VS 2008 solution (DayPilotLite2008.sln) ...
How do I empty a DayPilot calendar please?
Answered: You can use an empty list as a DataSource:
DayPilotCalendar1.DataSource = new ArrayList();
DayPilotCalendar1.DataBind();
This will display an empty calendar without any events.
How do I collapse all day events into single row?
Answered: You will have all these features if you upgrade to the Pro version: http://www.daypilot.org/buy.html
How do I disable all pop-ups?
Answered: Set EventClickHandling="Disabled" to deactivate event click handling and TimeRangeSelectedHandling="Disabled" to deactivate background cell click handling. These properties are new (modified) in DayP...
How to set calendar to show current date?
Answered: You have to do it in the code behind, not in the .aspx page:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DayPilotCalendar1.Star...
VB .Net and no database.
Answered: You need to store the list of events somewhere (at least in memory, or in a XML file). This list needs to be persisted between requests. You add the event to the calendar by adding it to the list and...