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

Binding the calendar to a data source

2 Answers 166 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Nigel Gentry
Top achievements
Rank 1
Nigel Gentry asked on 09 Sep 2009, 03:25 PM
Hello, I'm new to RadControls for ASP.NET AJAX so please forgive me if this is a simple question.

I am using the calendar in Multi-Month view and I have figured out how to get the calendar to dispaly in the fomat that I require.
I now need to bind the calendar to a SQL Server data source so that I can highlight certain dates that have events happening on them.

Can someone tell me how to do this or point me in the direction of a tutorial?

Many thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 10 Sep 2009, 02:22 PM
Hello Nigel,

The calendar control cannot be bound to a data source object as it is not a data-bound control. However, you can manually retrieve the information you need from the database, then each date that according to your scenario requires special formatting or properties based on the database information you can add to the SpecialDays collection of the calendar.

You may also find the following online example helpful:
http://demos.telerik.com/aspnet-ajax/calendar/examples/programming/customdaycellrendering/defaultcs.aspx

I hope this helps.


Greetings,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Nigel Gentry
Top achievements
Rank 1
answered on 11 Sep 2009, 12:45 PM
Hello Tsvetoslav,

Thanks for the reply, I will have a look at the online example.

Regards.
Tags
Calendar
Asked by
Nigel Gentry
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Nigel Gentry
Top achievements
Rank 1
Share this question
or