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

Quick calendar variable question

1 Answer 55 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 03 Oct 2011, 07:01 AM
How can a client send dates to my calendar via variable?

example of what im talking about.

http://host.com/calendar.aspx?Date=2011,10,03

or similar?


they are planning on running a script that pulls information from my calendar...  how can I allow them to do this?

i'm not too concerned about the format, i want to simulate if they actually clicked on the date.

also, is there a way to do a RSS type feed?


1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 06 Oct 2011, 07:42 AM
Hello Richard,

You could access the selected values thought the SelectedDates collection of the RadCalendar. This collection holds RadDate objects. This class basically wraps the standard DateTime class. So you could add or read the selected values and use them by your needs.

Here is a sample example:
RadCalendar calendar = new RadCalendar();
 
calendar.SelectedDates.Add(new RadDate(DateTime.Now));
 
foreach (RadDate date in calendar.SelectedDates)
{
    DateTime dateTime = date.Date;
}

I hope this helps.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Documentation and Tutorials
Asked by
Richard
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or