1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / What is the functionality of the Calendar?

What is the functionality of the Calendar?

4 posts, 0 answered
  1. renato
    renato avatar
    72 posts
    Registered:
    07 Jan 2011
    07 Feb 2011
    Link to this post
    What the calendar do? is only visual or may be attached to blog posts or events? properties have nothing.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Feb 2011
    Link to this post
    Hi renato,

    Could you provider some more information about which calendar you are referring to ? I could not understand what is the exact request you have.

    Kind regards,
    Ivan Dimitrov
    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
  3. renato
    renato avatar
    72 posts
    Registered:
    07 Jan 2011
    07 Feb 2011
    Link to this post
    I refer to the "RadControls" Calendar ... it seems it is only visual, you can not assign it or to post news .... used to that then?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Feb 2011
    Link to this post
    Hi renato,

    You have to create a custom control and bind it to a data source of news items.

    protected void Page_Load(object sender, EventArgs e)
        {   
            RadCalandar1.DayRender += new Telerik.Web.UI.Calendar.DayRenderEventHandler(RadCalandar1_DayRender);
        }
      
        void RadCalandar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
            var monthStart = e.View.MonthStartDate;
            var monthEnd = e.View.MonthEndDate;
      
            var allItems = BindData(monthStart, monthEnd);
      
            if (allItems.Count > 0)
            {
                foreach (NewsItem cnt in allItems)
                {
               
                }
      
            }
        }
      
        public IList BindData(DateTime start, DateTime end)
        {
           // get the data from the module you want
        }


    Kind regards,
    Ivan Dimitrov
    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
4 posts, 0 answered