Home Unanswered Active Tags New Question

How to show events or tasks at specified date?

Hi,

How can I show events/tasks on a specified date?

Suppose I've three events created with three different date and now I want to show all that events in DayPilot Lite 2.2 version [that is free], how can I achieve this.

Please help me.

Asked by Shahnawaz Khan 5 years ago.
Replies
You can set the visible date by setting StartDate property. If you want to show more days at once set Days property to the that number of days.
Comment posted by Dan Letecky 5 years ago.

Thanks! for your support.

I want to show day view, week view and month view in DayPilot lite. If it's possible then how can I implement it?

Also I want to put previous - next link for moving in calendar, is it possible.

Please reply as soon as possible.

Thanks & Regards! Shahnawaz Khan

Comment posted by Shahnawaz Khan 5 years ago.
1. Views
Day view: Days = 1
Week view: Days = 7
Month view: Days = 31 (but this won't be nice; month view requires a different days arrangement - I'm currently working on this feature and it will be a part of DayPilot Pro)

2. Next/Previous links:
Add two ButtonLinks next to the DayPilotCalendar control and handle the clicks:

protected void LinkButton1_Click(object sender, EventArgs e)
{
DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(1); // to change the date; ...AddDays(-1) to move backwards
DayPilotCalendar1.DataBind(); // to refresh the data from a data source
}
Comment posted by Dan Letecky 5 years ago.

Hello, Dan Letecky

Thanks! for your help

Comment posted by Shahnawaz Khan 5 years ago.

protected void LinkButton1_Click(object sender, EventArgs e)
{

DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(7);
DayPilotCalendar1.DataBind();
}

But that linkButton only move 7 days onward. When I click it again, it does move another 7 days :(

Comment posted by Sonkit 4 years ago.
Hi Sonkit,
That's correct, it's intended to work this way. If you tell me what you want to achieve, maybe I could help you.
Comment posted by Dan Letecky 4 years ago.
Just a guess: If you want to move backwards use a negative number:

DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(-7);
Comment posted by Dan Letecky 4 years ago.
What about if I want to set the start date to whatever date is clicked in a Calendar Control using ajax? 
I want to use callback and DayPilotCalendar1.update(). I cant get the date change to change according to the date pressed on the calendar.
I use

Me.DayPilotCalendar1.StartDate = Calendar1.SelectedDate
Can you help me on this one please?
I'm using the trail version
Comment posted by Sanson 4 years ago.
You should take a look at this topic: http://forums.daypilot.org/Topic.aspx/128/refreshcallback_not_working_with_a_dropdownlist
The best way probably is to put Calendar control inside an UpdatePanel and modify the day cells using DayRender event to execute .refreshCallBack() method of DayPilot to switch the date.

I would like to include a working example of this scenario in the DayPilot package soon.
Comment posted by Dan Letecky 4 years ago.

Hello,I want to create a same event from one date to another date(i,e-gap of sevendays).not clicking every time in that cell(seventimes for seven days).Can anyone help me in this matter.

A bunch of thanks in advance..............................

Regards,

Sudeep Kumar Ray

Comment posted by Anonymous 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java