I want to show a series of pie charts but with the series labels on top of each section like so:
I haven't found anything that suggests the labels can be anywhere except attached by lines. Is this possible?

Hi, sorry if this is a basic question, but I cannot for the life of me figure out how to get this to work. I can have a DropDown list and a form separately, but when I try to put the DropDown into the form itself, I get a "Object of type 'Telerik.Blazor.Components.FormItem' does not have a property matching the name 'ChildContent'" error.
Here's a sample snippet of what I'm trying to do:
<TelerikForm Model="@Input"
Columns="3"
ColumnSpacing="50px"
OnValidSubmit="@HandleValidSubmit"
OnInvalidSubmit="@HandleInvalidSubmit">
<FormValidation>
<DataAnnotationsValidator />
</FormValidation>
<FormItems>
<FormItem Field="@nameof(Model.Attribute)"></FormItem>
<FormItem Field="@nameof(Model.Attribute2)">
<TelerikDropDownList Data="@myDdlData"
TextField="MyTextField"
ValueField="MyValueField"
@bind-Value="Model.Attribute3">
</TelerikDropDownList>
</FormItem>
<FormItem Field="@nameof(Model.Attribute4)"></FormItem>
</FormItems>
</TelerikForm><TelerikAutoComplete Data="@VeicoloAutoCompleteData"
Value="@VeicoloAutoCompleteValue"
ValueChanged="@( (string newValue) => OnVeicoloAutoCompleteValueChanged(newValue) )"
OnChange="@OnChangeVeicoloAutoComplete"
ValueField="@( nameof(DropDownModel.Text) )"
MinLength="3"
DebounceDelay="150">
<ItemTemplate>
<strong>@context.Text</strong>
</ItemTemplate>
</TelerikAutoComplete>private List<DropDownModel> VeicoloAutoCompleteData { get; set; } = new();
private string VeicoloAutoCompleteValue { get; set; }
private async Task OnVeicoloAutoCompleteValueChanged(string newValue)
{
if (newValue.Length < 3)
{
VeicoloAutoCompleteValue = newValue;
return;
}
var request = new DataSourceRequest()
{
Skip = 0,
Filters = new List<IFilterDescriptor>(),
Sorts = new List<SortDescriptor>(),
Aggregates = new List<AggregateDescriptor>(),
Groups = new List<GroupDescriptor>()
};
request.Page = 1;
request.PageSize = 10;
var fs1 = new FilterDescriptorCollection();
fs1.Add(new FilterDescriptor("Targa", FilterOperator.Contains, newValue));
request.Filters = new List<IFilterDescriptor>()
{
new CompositeFilterDescriptor()
{
FilterDescriptors = fs1,
LogicalOperator = FilterCompositionLogicalOperator.Or,
}
};
var veicoli = await _veicoloService.GetAll(request);
VeicoloAutoCompleteValue = newValue;
VeicoloAutoCompleteData = veicoli.ToDropDownModel();
}
private DropDownModel? userChoiceVeicolo;
private async void OnChangeVeicoloAutoComplete(object theUserChoice)
{
if (userChoiceVeicolo is not null && userChoiceVeicolo.Text.Equals((string)theUserChoice, StringComparison.InvariantCultureIgnoreCase))
{
return;
}
var choice = VeicoloAutoCompleteData.FirstOrDefault(x => x.Text.Equals((string)theUserChoice, StringComparison.InvariantCultureIgnoreCase));
userChoiceVeicolo = choice;
if(userChoiceVeicolo is not null)
_veicolo = await _veicoloService.GetById(userChoiceVeicolo.Value);
}I'm trying to figure out how to autofit a column in a nested grid.
In the Detail Template of a grid (Grid A), there is a another grid (Grid B). This nested grid (Grid B) has a column that shows the selections from a MultiSelect component. This could be a single value or multiple values. I know that there are methods that resize a column based on the column id or resize multiple columns, but these methods require a grid object reference. Since this nested grid (Grid B) is templated and therefore has multiple instances, I can't directly get a reference to it.
Also, it seems that all the relevant Grid event handlers only have arguments return references to the data bound to the grid, but not a reference to the grid object.
Is there a way to get a reference to a specific grid instance in a Detail Template or is there another way to auto size a specific column in a nested grid?
Thanks


Hi, my code use OnStateInit to change the column order, settings the GridColumnState.Index property.
Now i found it not work anymore (i can't found the cause).
This is a simplified version who reply the issue: grid is created with Col1 and Col2, in OnStateInit i revert the index of the columns so i assume who grid will render with Col2 and Col1 (inverted order) but seem not working.
https://blazorrepl.telerik.com/QeFwbnFd19xPAId547
What's wrong?
Thanks

I am working with a DataGrid, and in the on-save event,
I need to validate some data. In certain cases,
I must display a dialog that allows the user to decide whether to save or cancel the update,
based on data retrieved from the API.
Is it possible to "hack" the DialogFactory to achieve this?

Hi, I need the SchedulerResourceGroupHeaderTemplate to have a certain size to fit a long description of the appointment and some buttons for actions. I am using the TelerikScheduler component to represent when a person should take one or several medications, but when I change the time division from 12h to 8h or lower the position of the event/appointment gets completely out of position.
Why does it position itself in this way? Am I using the component incorrectly?
Im using telerikSchedulerRef to refresh the UI, when time division changes
telerikSchedulerRef?.Rebind();
and OnItemRenderHandler to add a css class for resizing the appointment control (.k-event)
private void OnItemRenderHandler(SchedulerItemRenderEventArgs e) => e.Class += " customAppointment";Thanks in advance
<TelerikScheduler Data="@ViewModel.Appointments" @bind-Date="@filterStartDateTime" View="SchedulerView.Timeline" @ref="telerikSchedulerRef" OnItemRender="@OnItemRenderHandler">
<SchedulerToolBar>
<SchedulerToolBarCustomTool>
<div class="mr-2">
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.Day)" Size="sm">24h</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.HalfDay)" Size="sm">12h</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.EightHours)" Size="sm">8h</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.Hourly)" Size="sm">1h</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.HalfHour)" Size="sm">30m</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.TenMinutes)" Size="sm">10m</TelerikButton>
<TelerikButton OnClick="()=>SetTimeDivisionMode(TimeDivision.FiveMinutes)" Size="sm" Class="mr-3">5m</TelerikButton>
</div>
</SchedulerToolBarCustomTool>
<SchedulerToolBarCustomTool>
<div class="time-filters">
<TelerikDateTimePicker Title="@Localizer["AppStrings.StartDate"]" @bind-Value="@filterStartDateTime" Format="dd/MM/yyyy HH:mm" Width="160px"></TelerikDateTimePicker>
<TelerikFontIcon Icon="@FontIcon.ArrowRight" Size="md" />
<TelerikDateTimePicker Title="@Localizer["AppStrings.Enddate"]" @bind-Value="@filterEndDateTime" Format="dd/MM/yyyy HH:mm" Width="160px"></TelerikDateTimePicker>
</div>
</SchedulerToolBarCustomTool>
</SchedulerToolBar>
<SchedulerResources>
<SchedulerResource Field="@nameof(Appointment.LineId)" TextField="Text" ValueField="Value" Data="@ViewModel.Resources"></SchedulerResource>
</SchedulerResources>
<SchedulerSettings>
<SchedulerGroupSettings Resources="@GroupingResources" Orientation="@SchedulerGroupOrientation.Vertical"></SchedulerGroupSettings>
</SchedulerSettings>
<SchedulerViews>
<SchedulerTimelineView StartTime="@filterStartDateTime" EndTime="@filterEndDateTime" SlotDivisions="@slotDivisions" SlotDuration="@slotDuration">
<SchedulerResourceGroupHeaderTemplate>
<div class="appointment_container" style="min-height:130px;">
<div class="appoint-left">
<TelerikButton Icon="@FontIcon.FileAdd" Size="sm" />
</div>
<div class="appoint-center">
<div class="appointment_desc" title="@context.Text">
@context.Text
</div>
<div class="appointment_size">
Total: @context.Size ml/24h
</div>
</div>
<div class="appoint-right">
<TelerikButton Icon="@FontIcon.Envelop" Size="sm" Class="appoint-envelop" />
<span style="font-style:italic">
@context.Route
</span>
</div>
</div>
</SchedulerResourceGroupHeaderTemplate>
<ItemTemplate>
@{
<div class="d-flex justify-content-between">
<TelerikDropDownButton Icon="@FontIcon.Checkbox">
<DropDownButtonItems>
<DropDownButtonItem Icon="@FontIcon.Check"> Check</DropDownButtonItem>
<DropDownButtonItem Icon="@FontIcon.Pause">Pause</DropDownButtonItem>
<DropDownButtonItem Icon="@FontIcon.MinusCircle">Stop</DropDownButtonItem>
<DropDownButtonItem Icon="@FontIcon.Cart">Add to cart</DropDownButtonItem>
</DropDownButtonItems>
</TelerikDropDownButton>
<span>Test description</span>
</div>
}
</ItemTemplate>
</SchedulerTimelineView>
</SchedulerViews>
</TelerikScheduler>
I was following this example here.
<GridColumn Field=@nameof(BookingEquipmentModel.FirstRequestedEquipmentType) Title="1st Requested" Editable="true" Filterable="false" Width="7rem">
<EditorTemplate>
@{
_currentBookingEquipmentModel = context as BookingEquipmentModel;
<TelerikDropDownList Data="@_equipmentTypeList"
@bind-Value="@_currentBookingEquipmentModel.FirstRequestedEquipmentTypeId"
TextField="@nameof(EquipmentTypeModel.Code)"
ValueField="@nameof(EquipmentTypeModel.EquipmentTypeId)"
DefaultText="Select Type">
<DropDownListSettings>
<DropDownListPopupSettings Height="auto" />
</DropDownListSettings>
</TelerikDropDownList>
}
</EditorTemplate>
</GridColumn>Grid EditMode set to GridEditMode.Inline and Column is Editable = True. _equipmentTypeList is populated in OnAfterRenderAsync. It's behaving as if it's just a normal read only column?
Rob.