This is a migrated thread and some comments may be shown as answers.

Binding Events data from database to Calendar control

4 Answers 283 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Hafeez
Top achievements
Rank 1
Hafeez asked on 31 Oct 2012, 07:31 PM
Hi,
I have a requirement where I need to get the events data from a table in database and assign it in a calendar.
The table has startdate, enddate, event title, event description fields.
The data is already saved via a custom form.
I need to bind events on a particular day for the month rendered and should be hyperlinked.
Once the user clicks on a particular event it should redirect to a page where it displays full details.
If the user changes the month then it should bind the appropriate events from the database for the respective days.
I would like to know if this can be acheived via telerik or  not.
If yes any guidance to existing piece of code or documentation would be very much helpful.
Thanks in advance.

Regards,
Mohammed Hafeezuddin

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Nov 2012, 06:34 AM
Hi,

You can try RadScheduler to achieve your scenario. Please take a look into this Documentation and Demo for more information.

Hope this helps.

Thanks,
Shinu.
0
Hafeez
Top achievements
Rank 1
answered on 01 Nov 2012, 06:59 AM
Hi Shinu,

Iam looking out for the functionality as shown here http://www.dubaicalendar.ae/en/section/events/monthly-events-schedule?month=11&year=2012

The demo which you have referred to is for radscheduler, I am lookin out for just calender which will show just the events which are clickable.

Regards,
Hafeez
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2012, 10:16 AM
Hi Hafeez,

One suggestion is that you can add controls to RadCalender cell as follows.

C#:
protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
 if (e.Day.Date.Day == 10) // Sample Condition
 {
    Label lbl = new Label();
    lbl.Text =  Value from database
    e.Cell.Controls.Add(lbl);
  }
}

Hope this helps.

Thanks,
Shinu.
0
iqra
Top achievements
Rank 1
answered on 05 Jul 2017, 07:49 AM
i want to post my calendar value on web page i am using php .is there any example 
Tags
Calendar
Asked by
Hafeez
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Hafeez
Top achievements
Rank 1
iqra
Top achievements
Rank 1
Share this question
or