What is the functionality of the Calendar?
What the calendar do? is only visual or may be attached to blog posts or events? properties have nothing.
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
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?
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