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

How to bind atatable by using Calendar control?

1 Answer 46 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
yu
Top achievements
Rank 1
yu asked on 22 Oct 2010, 09:11 AM
         I need some help, I have a DataTable object from database  , I want to bind each data of DataTable  in Calendar .  Each data  shows in grids of calendar . For example, the first grid of '2010-1-1' shows sunny, the second grid of '2010-1-2' shows rainy, the third grid of '2010-1-3' shows snow, and so on .
         If you know how to do , please tell me , thanks! thanks!

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 26 Oct 2010, 12:32 PM
Hello Yu,

To achieve the desired functionality you could try using the RadCalendar special days and  templates. On the following links you could find how to use the special days and templates:
http://www.telerik.com/help/aspnet-ajax/calendar_templatesdaytemplates.html
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/specialdays/defaultcs.aspx

In your case you could get the dates form data table and add them as a special days with different templates. Please give it try and let me know if you experience any problems.

Kind regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
yu
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or