Dear Telerik Support Team,
I am encountering an issue with the RadGridView control in my application, which is impacting the usability for users relying on screen readers. Below, I have outlined the details of my development environment, the problem, and attached a sample project demonstrating the issue.
Issue Description:
In the attached sample project, I have implemented a simple RadGridView without any custom styling and populated it with sample data. I have observed that the focus behavior is inconsistent, particularly with the first cell in the RadGridView. When attempting to focus the first cell, only the cell itself receives focus, unlike subsequent cells where both the cell and the entire row are focused. This inconsistency results in screen readers failing to read out the content of the first cell, while they correctly read the contents of all other cells.
Upon further investigation using the Snoop utility to explore the visual tree, I noticed that the GotFocused event for the initially focused cell identifies it as being of type RadGridView, whereas, for other cells, the type is GridViewCell. This discrepancy seems to be at the root of the issue.
Attachments:
I have included a simplified, runnable standalone application that reproduces this behavior. Please find the sample project attached to this ticket.
I believe this might be a bug affecting the accessibility of the application, and I would greatly appreciate your guidance on whether this is a known issue with a workaround or if there's a fix available.
Thank you for your assistance.
Best regards,
Christian
First Tab:
Second Tab:
When selecting a Cell using the Mouse, the BorderColor is different to when navigating via ArrowKeys.
Also it seems that the Property IsSynchronizedWithCurrentItem does not work correctly when using ArrowKeys.
The issue with the Color can be observed in the Demo
Hello,
I believe that I have found a bug with the delete keyboard functionality using the delete key. Below are the steps to reproduce:
Note that if the user selects a new row and then selects the previous row the delete works.
Demo to illustrate is in SDK sample browser.
Grid View Examples - Custom Keyboard Command Provider
Please let me know if you need any additional information.
Thank you.
I am using a RadGridView to display appointments. I am adding paging to the control with RadDataPager. I am setting the ItemSource property for the RadGridView to {Binding Path=PagedSource, ElementName=unscheduledWorkOrdersRadDataPager }. I am then overriding the ConvertDraggedData(object data) method and using the DataObjectHelper class in order to obtain data from the object data parameter and then setting the returned IEnumerable<IOccurence> accordingly.
The problem is that whenever I added paging to the RadGridView. The DataObjectHelper is not able to properly retrieve the dragged data from the object data parameter.
Hi guys,
we have a messaging service that broadcasts a couple of messages every 1-5 seconds.
When our client module receives those messages, we want to append them at the bottom of a grid (RadGridView).
After appending them, we also want to scroll to the very bottom of that grid, so that the newest and therefore bottommost items come into view.
Documentation and forums suggest we go the AttachedBahaviour and ScrollIntoViewAsync way.
Our behaviour looks like this:
public class ScrollToNewItemBehavior : Behavior<RadGridView>
{
public static bool GetIsEnabled(DependencyObject obj) => (bool)obj.GetValue(IsEnabledProperty);
public static void SetIsEnabled(DependencyObject obj, bool value) => obj.SetValue(IsEnabledProperty, value);
public static readonly DependencyProperty IsEnabledProperty = DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(ScrollToNewItemBehavior), new PropertyMetadata(false, OnIsEnabledChanged));
private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (d is RadGridView gridView)
gridView.Items.CollectionChanged += (s, args) =>
{
if (args.Action == NotifyCollectionChangedAction.Add)
{
gridView.ScrollIntoViewAsync(args.NewItems[0], gridView.Columns[0], null);
// exchanging args.NewItems[0] for gridView.Items[gridView.Items.Count-1] yields same result
//gridView.ScrollIntoViewAsync(gridView.Items[gridView.Items.Count-1], gridView.Columns[0], null);
}
};
}
}
Our Message class:
public class Message : ModelBase<Message>
{
public string Text { get; set; }
}
Our Messages collection in the ViewModel:
private RadObservableCollection<Message> _messages;
public RadObservableCollection<Message> Messages
{
get => _messages;
set
{
_messages = value;
NotifyPropertyChanged(m => m.Messages);
}
}
The collection is updated (in the ViewModel) like this:
Task.Run(async () =>
{
for (int i = 0; ; i++)
{
await Task.Delay(1000);
Messages.Add(new Message { Text = $"{i} - sftrvwj,erhvtwejhrfvtjlwehftrwejh" });
}
});
The grid is defined like this:
<telerik:RadGridView
x:Name="gridView"
ItemsSource="{Binding Messages, Mode=OneWay}"
IsSynchronizedWithCurrentItem="False"
IsPropertyChangedAggregationEnabled="True"
AutoGenerateColumns="False"
SelectionMode="Single"
CanUserFreezeColumns="False"
EnableColumnVirtualization="True"
EnableRowVirtualization="True"
CanUserDeleteRows="False"
CanUserInsertRows="False"
behaviours:ScrollToNewItemBehavior.IsEnabled="True"
CanUserGroupColumns="False"
IsReadOnly="True"
IsManipulationEnabled="False"
CanUserReorderColumns="False"
CanUserSearch="False"
ShowGroupPanel="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn
DataMemberBinding="{Binding Text}"
Header="Text"
ShowDistinctFilters="False"
IsSortable="False"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Nothing too fancy.
What we observe:
When a message is added, the view and the scroll indicator randomly jump to the top or the bottom of the grid and stay there until the next message is added.
We tried AddRange, Suspend-/ResumeNotifications, ObservableCollection instead of RadObservableCollection.
We disabled many grid features.
We tried .NetCore
,
we tried .net Framework
To no avail.
This seems to be a bug.
Do you know any workarounds or a completely different approach to achieve the desired behaviour?
Side note:
When we set GroupRenderingMode to Flat,
GroupRenderMode="Flat"
the view stays at the bottom. The scroll indicator stays at the bottom as well, but once in a while jumps a little bit up, as if by one row, and down to the bottom again without the view changing.
At one time disabling filtering on all columns seemd to work... but later didn't.
Thanks in advance
Thorsten
The search box TextBox element used with the search-as-you-type feature is not focused when you press the Tab key. This happens because the search box is excluded from the tab order (IsTabStop=False).
Use the ChildrenOfType extension method to get the TextBox element and set its IsTabStop to True.
private void gridView_Loaded(object sender, RoutedEventArgs e)
{
var searchBox = this.gridView.ChildrenOfType<TextBox>().FirstOrDefault(x => x.Name == "PART_SearchAsYouTypeTextBox");
searchBox.IsTabStop = true;
}
Hi Telerik-Team,
When creating a new item in the GridView by either mouse or insert button the row is not selected or highlighted.
I guess this is a bug, since a cell in the new row has focus but not the row.
Best regards,
Mats
When we make frozen column width bigger than the window will hide other columns. Scrolling is applied only to not frozen columns. So we can't scroll to see other columns. A possible workaround is to set MaxWidth property of the column.
1. Select the first row. 2. Hit Ctrl-End to jump to the end of the list. 3. Hold down the Shift key and select the last row. 4. Scroll up and notice that everything between the first page and the last page is not selected. * there is a sample project attached in the support thread
The performance of the RadGridView scrolling diminishes significantly when the grid has thousands of rows and alternating row styles are used. This causes scrolling to be virtually unusable. I note this is a known limitation of the RadGridView from information from https://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/performance We have had to remove the alternating row styles from our current product while porting to the RadGridView. I am requesting if this issue is going to be fixed in the future anytime soon.
I am setting the status of the item to Declined as the reported behavior is due to the fact that the RowDetailsVisibilityMode is set to VisibleWhenSelected. The default behavior of RadGridView is to split the merged cell when a row with expanded row details is added. Thus, the reported issue you are is the expected one. If setting the RowDetailsVisibilityMode is removed the control will behave as expected.
The reason for declining the item is that a possible fix for this behavior would practically interfere with the virtualization mechanism of the control. Shortly said, when the columns have their width initially set, RadGridView is aware of the column with the biggest size and performs its calculations based on it. When their size is changed on loading, the control cannot be aware of the size of a column that is not present in the viewport thus, the reported issue is observed. In order this behavior to be modified so, the engine needs to measure an element that is not yet loaded. We cannot commit ourselves to implementing this, as this would affect the virtualization of RadGridView. A possible workaround would be to avoid setting the Width of the columns initially in XAML.