Questions Tagged lite
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...
Not all events display on the DayPilot Control
Answered: In some browsers (especially IE), this can happen if you are trying to display a single long word that doesn't fit the event. This is a problem of how the words are wrapped and it can't be controlled...
Not finding DayPilot.Web.Ui.Events
Answered: View the object in the object browser. Find the Web.Ui entry can click on 'Events' In the right pane of the viewer click on 'Enable'. That should fix your problem.
Set an EventHeight per event
Answered: This is not possible in the Lite version. In the Pro version, you should be able to do this by creating a special CSS class and applying it to the event in BeforeEventRender (in CssOnly mode). Just n...
Compiler Error Message: BC30451: Name 'DayPilot' is not declared.
I have included the import specification also in Modal.vb as Imports DayPilot.Web.Ui.Json Imports DayPilot.Web.Ui Still i am getting an error Pleas I am expecting a help from anybody esle Source Erro...
Recurrence Events showing indefinetly
share point recurrence events showing in all the days , though we have set the event to occur every first week of the month. Please share your suggestions in resolving this issue.
How to add custom data to event?
Answered: Event customization was not supported in the Lite version until 3.1 release. http://www.daypilot.org/daypilot-lite-for-asp-net-webforms-3-1.html In 3.1 and later versions you can use BeforeEventRende...
Day Pilot Scheduler - How can I pass the DataValueField to a javascript function on EventClickJavascript event ?
Answered: {0} should get replaced with the DataValueField value (EventID in your case). See the following code snippets: DayPilotScheduler.cs
string val = DataBinder.GetPropertyValue(dataItem, DataValueFie...
Daypilot scheduler lite used in mvc3 razor project
Hi! I am working on a school project ( Hotel booking system ) it is a MVC3 razor project, and i am trying to implement daypilot scheduler into it. i managed to get the resources (rooms) loaded from t...
e.value result in error
Answered: The JavaScript handling is a bit different in the Lite version. You should replace the code with something like this:
EventClickJavaScript="alert({0});"
The Lite edition doesn't use any JavaScrip...