Get the Calendar Cell values

2 posts, 0 answers
  1. Brown
    Brown avatar
    48 posts
    Member since:
    Dec 2010

    Posted 14 Jun 2011 Link to this post

    Hi,
    I am using RadCalendar, in that i am displaying 3 values in the calendar cell.(Using Rad Window to enter 3 values and click on ok it should display in the Calendar cell.) While Click on the submit button i need to get all those 3 values and the particular  date. Could you pelase tell me how to do that.

    Thanks in advance.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Jun 2011 Link to this post

    Hi Brown,


    You can retrieve the last selected/clicked date from the SelectedDates collection in SelectionChanged event.
    protected void RadCalendar1_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
     
       {
     
           if (e.SelectedDates.Count != 0)
     
           {
     
       Response.Write(e.SelectedDates[e.SelectedDates.Count - 1].Date.ToString()); // Last selected date
     
           }
     
     
     
       }


    Best wishes,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top