(bug report only)
(optional)
The day segment shows ‘dd’.
The day segment should show '0', in order to allow entering a valid value (e.g., `01`, `05`).
When every pane but one is dragged out of a DockManagerSplitPane, the DockManager removes the split pane and moves the remaining pane up into the split pane's parent. That pane keeps its Size, but the size was relative to the removed split pane's orientation.
If the removed split pane was vertical and its parent is horizontal, the remaining pane's height percentage becomes its width percentage. In the example below, Pane A is 80% of the left column's height. After Pane B is dragged out, Pane A becomes 80% of the whole DockManager's width.
The same happens with split panes the DockManager creates while you drag. Docking a pane above or below Pane A creates a vertical split where each pane gets 50%. Dragging that pane out again leaves Pane A at 50% of the DockManager's width.
The wrong size is also in the state returned by GetState() and OnStateChanged, so a saved layout keeps it too.
Steps to reproduce (scenario 1)
Run the page below.
Drag "Pane B" out of the left column and dock it in the center (for example to the right of "Editor"), or float it.
Click "Show state".
Expected: Pane A takes the place of the removed left split pane at that pane's width (20%).
Actual: Pane A becomes 80% of the DockManager's width, and its Size in the state is still 80%.
Steps to reproduce (scenario 2)
After scenario 1, drag "Preview" and dock it below "Pane A". The DockManager creates a vertical split and gives both panes 50%.
Drag "Preview" out again and dock it to the right of "Editor".
Expected: Pane A gets the width of the removed split pane.
Actual: Pane A becomes 50% of the DockManager's width.
Suggested fix: when a split pane is removed and its last child moves up into the split pane's parent, give that child the removed split pane's Size.
Test Page:
@using System.Text.Json
<TelerikButton OnClick="@ShowState">Show state</TelerikButton>
<TelerikDockManager @ref="_dockManager" Height="600px" OnStateChanged="@OnStateChanged">
<DockManagerPanes>
<DockManagerSplitPane Orientation="@DockManagerPaneOrientation.Horizontal" @bind-Size="@LeftSplitPaneSize">
<Panes>
<DockManagerSplitPane Id="left-split" Orientation="@DockManagerPaneOrientation.Vertical">
<Panes>
<DockManagerContentPane Id="pane-a" HeaderText="Pane A" @bind-Size="@PaneASize">
<Content>Pane A - 80% of the left column's height</Content>
</DockManagerContentPane>
<DockManagerContentPane Id="pane-b" HeaderText="Pane B" @bind-Size="@PaneBSize">
<Content>Pane B - drag me out of the left column</Content>
</DockManagerContentPane>
</Panes>
</DockManagerSplitPane>
<DockManagerContentPane Id="editor" HeaderText="Editor" @bind-Size="@EditorPaneSize">
<Content>Editor</Content>
</DockManagerContentPane>
<DockManagerContentPane Id="preview" HeaderText="Preview" @bind-Size="@PreviewPaneSize">
<Content>Preview</Content>
</DockManagerContentPane>
</Panes>
</DockManagerSplitPane>
</DockManagerPanes>
</TelerikDockManager>
<pre>@_stateJson</pre>
@code {
private string EditorPaneSize { get; set; } = "40%";
private string PreviewPaneSize { get; set; } = "40%";
private string LeftSplitPaneSize { get; set; } = "20%";
private string PaneASize { get; set; } = "80%";
private string PaneBSize { get; set; } = "20%";
private TelerikDockManager _dockManager = default!;
private string _stateJson = string.Empty;
private void OnStateChanged(DockManagerStateEventArgs args)
{
_stateJson = Serialize(args.DockManagerState);
}
private void ShowState()
{
_stateJson = Serialize(_dockManager.GetState());
}
private static string Serialize(DockManagerState state)
{
return JsonSerializer.Serialize(state, new JsonSerializerOptions { WriteIndented = true });
}
}
The PDF Viewer may freeze the browser while zooming certain documents, no matter what is the target zoom level. The same PDF file displays immediately on open.
Test file in ticket 1720768
Title: WCAG 1.3.1: Ensures elements with an ARIA role that require child roles contain them (#\39 374a450-079d-4586-b823-d6bc7723505f)
Tags: Accessibility, WCAG 1.3.1, aria-required-children
Issue: Ensures elements with an ARIA role that require child roles contain them (aria-required-children - https://accessibilityinsights.io/info-examples/web/aria-required-children)
Target application: Hermes Home - https://localhost/TrafficLoss
Element path: #\39 374a450-079d-4586-b823-d6bc7723505f
Snippet: <div class="k-grid-aria-root" id="9374a450-079d-4586-b823-d6bc7723505f" role="grid" aria-label="Data table">
How to fix:
Fix any of the following:
Element has children which are not allowed (see related nodes)
Element has no aria-busy="true" attribute
Environment: Microsoft Edge version 111.0.1661.41
====
This accessibility issue was found using Accessibility Insights for Web 2.37.3 (axe-core 4.6.3), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
============================ code =============================
<TelerikGrid Data="@ViewModel.RDLInformation" TItem="TLSummary"
Pageable="true"
Sortable="true"
Groupable="false"
FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
Resizable="true"
Reorderable="true"
Height = "100%">
....
</TelerikGrid>
When I override the IsValid method to return a ValidationResult the Incell & Inline edit modes allow the editing to be continued even if an invalid value is present.
===
Telerik edit: A possible workaround is to cancel OnUpdate and possibly, OnEdit too. Here is a complete example:
https://blazorrepl.telerik.com/QyaWxkvv10stL8jB06
(bug report only)
Scenario: ComboBox with AllowCustom enabled and Filtering disabled.
Run this example: https://blazorrepl.telerik.com/cqbvbuvp45YAv3Su16
(optional)
The first item in the list is selected: “first”
The entered text remains in the CombBox input: “aaa”
Hi Team,
I would like a parameter that allows users to select a time from the TimePicker popup without having to press Set.
Current behaviour
Selecting an hour or minute in the popup changes its internal pending selection, but does not update the bound Value or fire the public ValueChanged callback. Users must press Set to apply the selection. Clicking outside the popup discards it.
Requested behaviour
Please consider adding an AutoCommit Boolean parameter, defaulting to false to preserve existing behaviour.
When enabled:
- Each valid hour/minute selection immediately updates Value and fires ValueChanged.
- The popup stays open so users can adjust both hours and minutes.
- Clicking outside closes the popup and retains the latest selected time.
- Pressing Set is no longer required.
I have been trying to improve my Lighthouse score with Google and one of the items it is tagging is the "telerik-blazor.js" file. I have seen new practices where the JavaScript is imported as needed, see this article here from Microsoft.
Can you please consider this in the future?
===
Telerik edit: A possible workaround is to build the Telerik JavaScript file without some of the components that you don't need.
Please support ColumnVirtualization in a Grid that also has multi-column headers (column bands) and locked columns, all three at once.
Follows ticket 1720022, where Ivan Danchev confirmed two defects in this combination (Telerik UI for Blazor 15.1.0, Blazor Server, ScrollMode Virtual, 45 columns of fixed px width in bands, the first band locked, Grid Width in px):
1. A band's header colspan is computed from its visible leaf columns and ignores the columns hidden by virtualization, so the header row goes out of step with the data rows and a band partly in view shows no title.
2. With any locked column the virtualizer merges every hidden column into one spacer cell. The spacer is a whole number of columns wide, so it cannot match an arbitrary scroll offset and leaves an empty strip, narrower than one column, between the locked block and the first scrolled column, in the header and every row. The spacer also carries the first hidden column's band into the header row.
Why it matters: on Blazor Server every rendered cell is a component held on the circuit. For our 45-column logbook grid the cells and loading placeholders are most of each user's memory (about 50 MB of render tree), and column virtualization would cut that by about two thirds. Wide data grids are usually grouped into bands with an identifying block locked on the left, so the combination is the normal case for a grid wide enough to need column virtualization.
Related: feedback items 1546425 and 1538964.
My users use Tab to focus the masked textbox and when they start typing (its content was highlighted because of getting focus with Tab), that typing action does not put the range (caret) in the correct place - it remains at position 0 rather than going to position 1.
For example, in the below phone mask they type "9" and then "0" and I would expect to get "90" but I get "0".
---
ADMIN EDIT
A workaround is to collapse the range when the input gets focus:
@inject IJSRuntime JsInterop
<input />
<span @onfocusin="@CollapseInputSelection" @ref="@ParentElem">
<TelerikMaskedTextBox Mask="+1 (000) 000-0000"
IncludeLiterals="true"
@bind-Value="@CellPhoneNumber"
Class="form-control" />
</span>
@* move this script to an actual script file instead of using this hack *@
<script suppress-error="BL9992">
function collapseInputSelection(root) {
setTimeout(function () {
var input = root.querySelector("input");
if (input) {
input.setSelectionRange(0, 0);
}
}, 20);
}
</script>
@code{
string CellPhoneNumber { get; set; }
ElementReference ParentElem { get; set; }
async Task CollapseInputSelection()
{
await JsInterop.InvokeVoidAsync("collapseInputSelection", ParentElem);
}
}---
I want the user to only be able to select times between, for example, 11AM and 1PM. Setting Min and Max does not limit that, I can select any time:
Selected time: @selectedTime