In Development
Last Updated: 03 Jun 2024 14:00 by ADMIN

Arrow keys (up and down) don't scroll the first row which is outside of the viewport. One way to reproduce this is to scroll down, then select the topmost visible row and press the Up arrow key in order to select the row above. This should scroll the view a bit up in order to see the previous row which is now selected.
Currently, this doesn't work when using a custom implementation of the GridViewCell class.
The issue is reproducible when GroupRenderMode is set to Flat.

To work this around, you can manually scroll to the row.

public MainWindow()
{
	InitializeComponent();
	this.gridView.AddHandler(RadGridView.KeyUpEvent, new KeyEventHandler(OnGridViewKeyUp), true);
}

private void OnGridViewKeyUp(object? sender, System.Windows.Input.KeyEventArgs e)
{
	if (e.Key == Key.Up || e.Key == Key.Down)
	{
		Dispatcher.BeginInvoke(new Action(() =>
		{
			var currentCell = gridView.CurrentCell;
			var row = currentCell.ParentRow;

			// Since the VisualOffset proeprty is protected and you are already inheriting the GridViewRow class, you can just expose it through an extra property in the CustomGridViewRow, instead of using reflection like in this example.
			var visualOffsetPropInfo = typeof(Visual).GetProperty("VisualOffset", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); 			
			var offset = (Vector)visualOffsetPropInfo.GetValue(row);
			if (offset.Y < 0)
			{
				row.BringIntoView();
			}
		}));
	}
}

In Development
Last Updated: 29 May 2024 15:35 by ADMIN
When the selection mode is Extended the grid keeps a reference to a data item that is removed from the source.
In Development
Last Updated: 23 May 2024 10:26 by ADMIN

InvalidCastException is thrown when the DropIndicatorThickness property of the GridViewHeaderCell is set. Or whenever the DropIndicatorBrush property is accessed. This happens when using the Windows 7 theme. Also, the EnableColumnVirtualization property should be set to False.

System.InvalidCastException: 'Unable to cast object of type 'System.Windows.Media.LinearGradientBrush' to type 'System.Windows.Media.SolidColorBrush'.'

To work this around, you can use an implicit style targeting the GridViewHeaderCell in order to set its DropIndicatorBrush to a SolidColorBrush value.

 <telerik:RadGridView.Resources>
     <Style TargetType="telerik:GridViewHeaderCell">
         <Setter Property="DropIndicatorBrush" Value="White" />
         <Setter Property="DropIndicatorThickness" Value="10" />
     </Style>
 </telerik:RadGridView.Resources>

In Development
Last Updated: 22 May 2024 11:44 by ADMIN
Created by: Sheng
Comments: 0
Category: GridView
Type: Bug Report
0
The CellStyle cannot be changed at runtime.  
In Development
Last Updated: 21 May 2024 10:28 by ADMIN
Exception when changing ItemsSource when it's a CollectionViewSource and grouping is applied.
In Development
Last Updated: 16 May 2024 16:03 by ADMIN

Column groups may disappear when the RadGridView control is hosted in a TabItem of TabControl. These column groups can disappear when new GridViewColumnGroup instances are created.

Furthermore, resizing a column of RadGridView will result in a NullReferenceException.

To work this around, set the EnableColumnGroupsVirtualization property of RadGridView to False.

In Development
Last Updated: 14 May 2024 11:28 by ADMIN
The validation tooltip border remains visible when scrolling with the scroll thumb.