Hello,
I am trying to decide if I can use either the Calendar or Scheduler control (or even leverage both) for the following problem.
We have a data model that represents some forecasted daily values. It is keyed on the date, so there is one unique occurrence/tuple of this class per day. It could perhaps be implemented as a Dictionary<k,v>, where the key is the date or date-string.
The users of this UI will want to be able to:
1. See a single- or multi-month "calendar" of the forecast values in the main view of the control (perhaps like customized appointments in the Scheduler?)
2. Select one or multiple days (like you can do in the Calendar control, not really in the Scheduler?) and then be able to enter or edit the forecast values for the selected set of days.
3. Put the entire "calendar" (whatever month(s) are visible at the moment) into edit mode where the date cells use a template to edit the model.
So, the Telerik Calendar has the ability to select by date(s) - rather than appointments. The Scheduler naturally comes with a UI that is closer to what we need to display a complex object in the day's cell. On the other hand, the Scheduler is build around the concept of appointments and tasks, which is not really how our users will be thinking about the data.
I'm playing around with the Calendar right now and able to get some data into the template, but it looks like garbage right now because the space is obviously constricted. I have a long way to go, so I'm hoping to find some samples or ideas at least.
<TelerikCalendar SelectionMode="@CalendarSelectionMode.Multiple"
ValueChanged="@MultipleSelectionChangeHandler"
@ref="@multipleSelectionCalendar">
<MonthCellTemplate>
<div style="border-color:black; border-width:2px">
@context.Day
@{
string date = context.ToString("yyyyMMdd");
if (forecasts.ContainsKey(date))
{
<div>Forecast : forecasts[date].Forecast </div>
}
}
</div>
</MonthCellTemplate>
</TelerikCalendar>