Hi, one of my clients' automation team demands that each actionable element has it's own custom ID which they provide to us.
So on our custom components (or any HTML element) we just add, eg:
<div automation-id="some-important-div">...</div>
However, when we consume Telerik Blazor UI components we're struggling to fullfill this requirement.
Is there any way to add an arbitrary HTML attribute to inner components like this without having to re-implement each composable piece with our own template?
We're fine with the look and feel of components, so it feels like an overkill to have to re-do everything (for example, the calendar's header with clickable date, arrows and "today" elements, and then the date cells for each view) just to add this ID without changing the styles or structure.
Hi,
I am using TelerikCalendar Blazor component and set its SelectionMode="@CalendarSelectionMode.Multiple".
It works fine on computer as there is CTRL key to hold and click multiple dates to select them.
My question is how to make multi-selection on mobile/touch screen devices. There is no CTRL key.
How does TelerikCalendar support mult-selection on those devices?
Thanks
Kan
I'm currently working on a multiview calendar. However, I've come across an issue that confuses the user quite a bit. If I allow a selection that goes beyond the boundaries of a single month, then the overflow from the next or previous month is also selected and displayed. This results in the question:
"Is it possible to disable the display of overflow from the next or previous month?" In the template, I don't have any information in the context about which month the multiview is displaying, otherwise it would be easy to deactivate the context.
The question is, can the calendar be configured to simply not display overflow from other months?
For Display this is not a Problem, I override .k-other-month, so the overhang is not visible. But how to solve this in a Multiview Selection?
I recall being told I would have access to source code once I buy a licence.
Now that I have a licence, how do I get access to the source so I can do a local build?
Hello,
Is there any way to set custom template to calendar's cell.
I'm not writing about css class, but also structure - I want to add additional data to cell (like number work hours in each day).
Thanks.
Is there a way to prevent the user from selecting dates in the past?
When the current month is shown, I assume I need to create a List<DateTime> containing all the dates in the current month that are in the past and assign that List to the calendar's DisabledDates. If there is another way, please advise.
The other part of this question is: How we prevent the user from even viewing past months?
Thanks a lot!
Hello,
This might be a Blazor issue and not Telerik, but I don't know yet. I have a TelerikCalendar in a Blazor component (.razor page). I added a style tag to the page after the @using directives.
One of the styles I added was:
.k-calendar .k-state-selected .k-link {
background-color: #009966;
}
This works when the app is hosted by IIS Express in VS 2019 (see image "1" below). However, if it is hosted by Kestrel or published to my machine's IIS, the order of the css gets changed, and my local style gets overruled (see image "2" below).
Any ideas? Thanks!
1. IIS Express (my local css "green" gets applied):
2. IIS-hosted (my local css "green" gets overruled by what I guess is the control's default "orange" styling?):
Hi,
I try to implement a calendar there i use Range selection mode. I want the user only to click on the start range and then we will set end range in code based on the start range date.
So i have set an RangeStartChanged event handler and that works but the gui component think i am in select end Range date so i want to exit the selection state after i have select Start date.
Is there anyway to do that?
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>