What is the functionality of the Calendar?

Posted by Community Admin on 03-Aug-2018 17:26

What is the functionality of the Calendar?

All Replies

Posted by Community Admin on 07-Feb-2011 00:00
What the calendar do? is only visual or may be attached to blog posts or events? properties have nothing.
Posted by Community Admin on 07-Feb-2011 00:00
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
Posted by Community Admin on 07-Feb-2011 00:00
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?
Posted by Community Admin on 07-Feb-2011 00:00
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
This thread is closed