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>
Couple of questions:
1. When working Add command for a detail templated grid, the args parameter doesn't provide for the parent model so there is no way to quickly determine values needed from the parent that will populate the child/detail (like primary key values on a composite key). I guess I can manually track "current parent row" via OnRowClick but that seems a bit tedious? Surely there is an easier approach? I was expecting the OnCreate for detail grid to provide parent object/model as part of the event parameters, but that doesn't seem to be the case.
2. When working EditMode=InCell on a detail grid, my expectations was that when I click on an empty grid it would automatically put me into EditMode (Add) for a new detail row, but that doesn't seem to be the case? I have to go thru the OnCreate (which doesn't provide for parent model).
I was reading thru your documentation here and here but they weren't useful for is a real world scenario as none of the examples show "Add" case on a detail item that relies on a parent key value to build a composite key when the data is actually saved to a database.
Any clean suggestions other than tracking "current parent row" via OnRowClick?
Rob.