I am trying to clear all selected values from a TelerikRadioGroup. I would like to do this by clicking on the selected value. The problem is the OnChange and the ValueChanged does not fire unless you are clicking on a different value.
<TelerikRadioGroup Data="@genderOptions"
Value="@selectedGender"
OnChange="@OnChangeHandler"
ValueChanged="@((int newValue) => OnGenderChanged(newValue))"
ValueField="@nameof(GenderModel.GenderId)"
TextField="@nameof(GenderModel.GenderText)"
Layout="RadioGroupLayout.Horizontal">
</TelerikRadioGroup>
@code {
private int selectedGender;
private void OnGenderChanged(int newValue)
{
if (selectedGender == newValue)
{
var aa = 123;
}
else
{
selectedGender = newValue;
Console.WriteLine($"Gender changed to: {newValue}");
}
}
async Task OnChangeHandler(object newValue)
{
// the handler receives an object that you may need to cast to the type of the component
// if you do not provide a Value, you must provide the Type parameter to the component
Console.WriteLine($"ValueChanged fired with value: {newValue as string}");
}
}

Dear Telerik Support team,
as of version 7.1.0 the No Data Template was introduced for Charts and I was wondering, if there's any chance to prevent the chart of rendering the no data template, when none is defined and needed.
In my case I'd rather display an empty chart, instead of the no data template.
Any way to accomplish that?
Many thanks!
Thomas
We have a legacy ASP.NET Core MVC app and are migrating it to Blazor Interactive Server one view/page at a time. We have Blazor Interactive Razor Components in a MVC Razor View working. What is the guidance on the TelerikRootComponent in this scenario? There is no Blazor interactive layout file to place it in w/ this use case.
<div class="alert alert-dark" role="alert">
This is an ASP.NET Core MVC Razor View/Page.
</div>
<div class="card">
<div class="card-header">
Blazor Interactive Server Component
</div>
<div class="card-body">
<component type="typeof(MyWeb.Components.Tests.Test)" render-mode="ServerPrerendered" />
</div>
</div>
Hi, I am wondering if anyone has attempted this before and if it's possible. I have a use case where a user can click on a grid to expand details about that row, which shows as another grid. For example, in the image I have, I expand this row, and it shows a new grid below.
When I choose export, I want to be able to export the rows I'm viewing as usual, but underneath each of those rows I want to also include the sub-grid rows.
So for example, if an object has two sub-items in its sub-grid, the export for two objects would look like:
Object 1
Sub Item 1
Sub Item 2
Object 2
Sub Item 1
Sub item 2
I'm assuming I have to do something under OnBeforeExcelExport to stage this, but how would I go about doing it? I have no idea what the syntax in this case should look like (as a matter of fact I don't quite understand what's going on in the default version of the method).
Any help is appreciated!

Hello
I want to display the desired text in the DatePicker after selecting the date from TelerikDatePicker.
Currently, after selecting the DatePicker, the date is displayed in this field, to which I want to add the desired text.
For example, in the DatePicker field after selecting the date, instead of
07/01/2025
, today is 07/01/2025.
If it is not possible to change the text, at least no text should be displayed in the DatePicker after selecting the date.
Please help me.
Code and image:
<TelerikDatePicker @bind-Value="DatePickerValue" >
</TelerikDatePicker>
@code {
private DateTime DatePickerValue { get; set; } = DateTime.Today;
{
I want the Grid to display correctly on different devices like Mobile And Tablet.
In other words, I want to have a Responsive Grid.
In such a way that the Grid is displayed correctly in different dimensions and the remaining columns that do not fit on the page are scrolled horizontally.
Please help me.
Currently, on different devices such as mobile and tablet, the Grid is displayed as small columns, which is not suitable at all.
Thanks
I have a TelerikGrid whose columns is dynamically populated with List<ExpandoObject>.
I need a TelerikProgressBar to display one of the columns. I have used the following code but TelerikProgressBar only displays the value of the first record for all rows and individual rows are not displayed properly in TelerikProgressBar.
Please help me.
Thanks
<GridColumns>
@{
if (GridData != null && GridData.Any())
{
var firstDataItem = (IDictionary<string, object>)GridData.First();
foreach (var item in firstDataItem)
{
if (item.Key != "ProgressBar_Num")
{
<GridColumn Field="@item.Key" FieldType="@item.Value.GetType()" @key="@item.Key">
<Template>
<TelerikProgressBar Class="width-100" Max="100" Value="(double)item.Value">
</TelerikProgressBar>
</Template>
</GridColumn>
}
}
}
}
</GridColumns>
Is there a way to use a Switch control instead of checkbox in a TreeView? I am able to use ItemTemplate to insert a switch next to the checkbox but I need to replace the checkbox and have the switch use CheckChildren and CheckParents.
Any ideas?
Thanks!
<TelerikTreeView OnItemRender="@OnItemRender" CheckBoxMode="TreeViewCheckBoxMode.Multiple" CheckChildren="true" CheckParents="true" Data="@FlatData" @bind-ExpandedItems="@ExpandedItems">
<TreeViewBindings>
<TreeViewBinding TextField="Text" IdField="Id" ParentIdField="ParentId" ItemsField="Text" HasChildrenField="HasChildren" IconField="Icon">
<ItemTemplate>
@{var treeItem = (TreeItem)context; }
<div class="treeview-item">
<TelerikSwitch @bind-Value="treeItem.IsChecked" />
<span>@treeItem.Text</span>
</div>
</ItemTemplate>
</TreeViewBinding>
</TreeViewBindings>
</TelerikTreeView>