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

How to show events or tasks at specified date?

Asked by Shahnawaz Khan
11 years ago.

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.

Comment posted by Dan Letecky
11 years ago.
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 Shahnawaz Khan
11 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 Dan Letecky
11 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 Shahnawaz Khan
11 years ago.

Hello, Dan Letecky

Thanks! for your help

Comment posted by Sonkit
10 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 Dan Letecky
10 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
10 years ago.
Just a guess: If you want to move backwards use a negative number:

DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(-7);
Comment posted by Sanson
10 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 Dan Letecky
10 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 Anonymous
10 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

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.