Quick calendar variable question

2 posts, 0 answers
  1. Richard
    Richard avatar
    1 posts
    Member since:
    Aug 2012

    Posted 03 Oct 2011 Link to this post

    How can a client send dates to my calendar via variable?

    example of what im talking about.


    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?

  2. Vasil
    Vasil avatar
    1604 posts

    Posted 06 Oct 2011 Link to this post

    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.

    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
Back to Top