I just discovered the DetailTemplate and it is great. But I build myself a genereric Grid-Control with the Tererik-Grid and I pass a RenderFragement from my Parent-Component to this Control. This works perfectly. But even if the RenderFragemt is Null, the "+" and "-" Buttons to expand and collaps the DetailTemplate are always shown. How can I hide them ?
Unfortunately this is not working:
@if (ChildContent != null)
<DetailTemplate>
{
@ChildContent
}
</DetailTemplate>
}
Hi All,
I schedule a Month at the time but using the MultiDay view because I need 09:00-17:00 in .25 hours a day.
Is it possible to use the Month view in a grid of days x hours like the Multiday view.
As alternative I would also be happy if I could use the Month-view date-picker
TIA
Regards, Maarten
I would like to achieve this:
I have a GridLayout width 3 Rows (50px, Auto, 50px)
The second row is expanding due to the Browser-Height.
Inside this second Row I would like to put a Grid that expands along to the maximum available height when the User resizes the Browser.
If I give the Grid the Height of "100%" the Height is too low if the Grid has no rows. I would like to expand the Grid always to the maximum available space. At the moment I try to calculate the height with JavaScript in Pixel but I hope that there would be a better way !?
Is there any ?
I'm using
ChartCategoryAxis Type="@ChartCategoryAxisType.Date" BaseUnit="@ChartCategoryAxisBaseUnit.Fit"
Is there a way to show the labels as DayOfWeek (Wednesday) instead of date (3/1) ?
I have a grid that loads big data. We used to use the ObservableCollection but opted to use the OnRead for better performance (loading takes time when using ObservableData). We have EventAggregators and PropertyChanged events running async OnInitialised().. Does this affect the OnRead event? We manually track the Add, Edit/Update, Delete and Duplicate actions on the grid.
So upon running our blazor app, the grid won't load the data on the grid and has the loading animation on endless loop. (Tried waiting for it to load for about 2 hours). Also tried debugging line per line from which I saw that upon executing the OnRead, the args,Data and args,Total were popullated properly.
<TelerikGrid
OnRead="@OnGridRead"
Data="Data"
Pageable="true"
PageSize="10"
Width="100%"
Sortable="true"
Navigable="true"
Groupable="true"
SelectionMode="GridSelectionMode.Single"
SortMode="@SortMode.Single"
FilterMode="@GridFilterMode.FilterMenu"
Resizable="true"
OnRowClick="OnRowClickCallback"
Reorderable="true"
AutoGenerateColumns="true">
I have a grid that displays financial information nicely. However, I need a second grid to access the selected row from the first grid so that it can display further details.
First (fully functioning) grid in brief:
<TelerikGrid Data="@vm.Model.CO_DetailsList"
@ref="grid"
EditMode="@Telerik.Blazor.GridEditMode.Incell">
<GridColumns>
<GridColumn Field="@nameof(CO_Details.Seg0)" Title="Fund" Width="70px">
<EditorTemplate>
<TelerikComboBox Data="@vmSeg0.Model"
TextField="Value"
ValueField="Value"
TItem="GL_Seg0RO"
TValue="string"
@bind-Value="vm.Model.CO_DetailsList[index].Seg0">
<ComboBoxSettings>
<ComboBoxPopupSettings MaxHeight="@seg0CmbHeight"/>
</ComboBoxSettings>
</TelerikComboBox>
</EditorTemplate>
</GridColumn>
</GridColumns>
</TelerikGrid>
I am stuck with a problem that I just can't seem to solve:
I have built a TelerikForm with a Submit button. The requirement is to change the enabled status of this button depending on whether the form has been modified or not.
So the basic code is :
<TelerikForm @ref="@FormRef"
Model="@EntityModel"
OnSubmit="@OnSubmitHandler"
>
<FormValidation>
<DataAnnotationsValidator />
</FormValidation>
<FormItems>
<CascadingValue Name="TheForm" Value="@FormRef">
@foreach (var form_item in FormItemCollection)
{
<DynamicComponent Type="@form_item.ComponentType" Parameters="@form_item.Parameters" />
}
</CascadingValue>
</FormItems>
<FormButtons>
<TelerikButton
ButtonType="@ButtonType.Submit"
Enabled="@SaveEnabled"
ThemeColor="primary">Speichern</TelerikButton>
</FormButtons>
</TelerikForm>
The ButtonShould be changed on the EditContext.IsModified() state.
So I tried:
protected override void OnAfterRender(bool firstRender) { if (firstRender) { FormRef.EditContext.OnFieldChanged += EditContext_OnFieldChanged; } base.OnAfterRender(firstRender); } private void EditContext_OnFieldChanged(object sender, FieldChangedEventArgs e) { SaveEnabled = true; StateHasChanged(); }