Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Documentation and Tutorials > Quick calendar variable question

Not answered Quick calendar variable question

Feed from this thread
  • Richard avatar

    Posted on Oct 3, 2011 (permalink)

    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?


    Reply

  • Vasil Vasil admin's avatar

    Posted on Oct 6, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Documentation and Tutorials > Quick calendar variable question