Unplanned
Last Updated: 13 Mar 2024 11:39 by Martin Ivanov

The cell content gets clipped when the width of the previous column changes at runtime. This happens in the Windows11 and Office2019 themes (possibly in others) and only if the clipped cell is position before the right frozen columns area.

To work this around, you can call the Rebind() method of RadGridView, after the column width changes.

Completed
Last Updated: 08 Apr 2024 14:24 by ADMIN
Release 2024.1.408

In the Office2019 theme, the RadGridView's ScrollBar elements should have transparent background by design. This is the track's background shown behind the thumb element that allows drag-to-scroll. Currently, the ScrollBars have a gray background.

To work this around, you can define an implicit Style in the App.xaml that targets the GridViewScrollViewer control. Then, set its Background property.

 

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2019;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
        </ResourceDictionary.MergedDictionaries>
        <Style TargetType="telerik:GridViewScrollViewer" BasedOn="{StaticResource GridViewScrollViewerStyle}">
            <Setter Property="Background" Value="Transparent"/>
        </Style>
    </ResourceDictionary>
</Application.Resources>

 

Unplanned
Last Updated: 15 Apr 2024 09:00 by Wolfgang
Provide option to set if the grouping is case-sensitive
Unplanned
Last Updated: 15 Apr 2024 14:35 by Martin Ivanov
Created by: Martin Ivanov
Comments: 0
Category: GridView
Type: Bug Report
0
The CellUnloaded event of RadGridView is not invoked consistent compared to CellLoaded. For example, when you scroll up and down, the CellLoaded event is invoked for each new cell that appears in the view port. However, CellUnloaded is not invoked for cells going outside of the viewport.
Unplanned
Last Updated: 07 Jun 2024 12:51 by Martin Ivanov

The column group headers are not displayed when the DisplayIndex property of the GridViewColumn objects is set before the control is loaded.

To work this around, you can set the DisplayIndex of the columns after the RadGridView is loaded.

Completed
Last Updated: 01 Jul 2024 11:22 by ADMIN
Release 2024.2.701 (Preview)

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>

Unplanned
Last Updated: 25 Jul 2023 11:06 by Martin Ivanov
Copied values are not pasted in the proper cells. This makes it seems that the pasted values occur in random cells. 
The issue occurs when the ClipboardPasteMode enum property contains the AllSelectedRows value and the SelectionUnit property is Cell or Mixed.

To work this around, avoid using the AllSelectedRows ClipboardPasteMode. Or the SelectionUnit values Mixed and Cell.
Unplanned
Last Updated: 27 Mar 2023 09:35 by Martin Ivanov
Convert the Mask property of GridViewMaskedInputColumn to a DependencyProperty in order to be bindable.
Unplanned
Last Updated: 27 Apr 2023 08:40 by Maurizio
When placed in FixedDocument one of the GridView parents is not a UIElement and this throws internal caught exception in ParentOfType methods used in GridView logic. This leads to performance issues in scenarios with many GridViews in documents.

The aim of this bug fix is to avoid such exceptions by default or with some API.
Unplanned
Last Updated: 28 Jun 2023 08:14 by alitvinov
Suppose GridView has 4 columns A, B, C (invisible), D.
Copy all cells below the visible columns A B and D.
Pasting the values results in incorrectly pasted empty rows and empty column header around the copied cells values.
Unplanned
Last Updated: 30 Jun 2023 07:55 by Martin Ivanov
Currently, the position and size of the merged cell can be fetched via the numeric position and length properties of the MergedCellInfo class. This allows you to implement custom code that iterates the Columns collection of RadGridView and extractс the parent GridViewColumn(s).

Add a property that allows you to get the columns hosting the merged cell. The property should be able to get a single column (when the cells are merged vertically) and multiple columns when (when merged horizontally).
Completed
Last Updated: 20 Oct 2023 12:49 by ADMIN
Release LIB 2023.3.1023 (23 Oct 2023)
*Original title: Cross thread exception with empty hierarchical headers*

I already have a work-around and I don't have time to craft an example.

 

When running two dispatchers in different threads, ie launching the following code twice:

public void LaunchInThread()
        {
            Thread _thread = new Thread(() =>
            {
              Application app = new Application();
              app.Run(new Window());
            });
            _thread.SetApartmentState(ApartmentState.STA);
            _thread.Start();
        }

And setting column hierarchical column headers to some but not all columns by code, ie:

if( ! first_column){
   column.ColumnGroupName = "groupName";
   if (radGridView.ColumnGroups.FirstOrDefault(x => x.Name == "groupName") != null) return;
   radGridView.ColumnGroups.Add(new GridViewColumnGroup { Header = "groupName", Name = "groupName" });
}
When the radGridView is displayed on the second thread, the code will crash with a cross-thread access validation exception, on GridViewColumnGroup.Name

My guess is that when no header is set, by default an static empty GridViewColumnGroup is reused. And as it's non-freezable it crashes.

Duplicated
Last Updated: 11 Jul 2023 14:04 by ADMIN

I have a GridView, with  ClipboardCopyMode set to "Cells, Header" and defined event CopyingCellClipboardContent :

private void RadGridView1_CopyingCellClipboardContent(object sender, GridViewCellClipboardEventArgs e)
{
// _excludedcolumns = columns excluded from copy operation set in logic before
if (_excludedcolumns.Contains(e.Cell.Column))
{
e.Cancel = true;
}
}

Header cells are empty, not skipped like ordinary cells.

Regards
Janez

 

Completed
Last Updated: 11 Jul 2023 11:06 by ADMIN
Release R2 2023 SP1

The result string contains wrong header positions and some headers could be missing when the copy of cells (including the header cells) of a column is cancelled using the CopyingCellClipboardContent event. This happens when the ClipboardCopyMode is set to "Cells,Header". 

To work this around, you can override the Copied event and replace the string part from the clipboard that contains the headers, with your custom variant.

private void RadGridView_Copied(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
	string copiedData = Clipboard.GetText();
	int headerEndIndex = copiedData.IndexOf("\r\n");
	string headerString = copiedData.Substring(0, headerEndIndex) + "\r\n";
	copiedData = copiedData.Remove(0, headerEndIndex);

	var gridView = (RadGridView)sender;
	var filteredColumns = gridView.Columns.OfType<Telerik.Windows.Controls.GridViewColumn>()
		.OrderBy(x => x.DisplayIndex)
		.Where(x => x.IsVisible && !excludedColumns.Contains(x));
	// Where excludedColumns list contains the columns that shouldn't be copied. In this example, this collection is used in the CopyingCellClipboardContent event handler to remove the corresponding columns from the clipboard copy process.

	string newHeader = string.Empty;
	for (int i = 0; i < filteredColumns.Count(); i++)
	{
		var column = filteredColumns.ElementAt(i);
		newHeader += column.Header.ToString();
		if (i < filteredColumns.Count() - 1)
		{
			newHeader += "\t";
		}

	}
	copiedData = newHeader + copiedData;
	Clipboard.SetText(copiedData);
}

Won't Fix
Last Updated: 19 Jan 2023 14:25 by ADMIN
The mouse-over highlight color is not applied to the correct row when the rows are navigated via the keyboard arrows.
Unplanned
Last Updated: 03 Jan 2023 11:38 by ADMIN

Setting ShowDistinctFilters for a RadGridViewColumn hides the distinct values from the filter popup as expected.

But the grid still queries the ItemsSource for distinct values of said column when showing thje popup - it calls something like

MyQueryable.Select(item => item.SomeColumn).Distinct().OrderBy(item => item).Take(1000))
It looks like a (small) performance hit, especially when custom IQueryable implementation makes calls to external services to query the data.  Which is my case.
Completed
Last Updated: 25 Jan 2024 19:04 by ADMIN
Release LIB 2023.3.1315 (15 Jan 2024)
Having a column that displays values of the type of DateTime, raises NotImplementedException when the filter operators are set to FilterOperator.Contains when a filtering operation is performed.
Completed
Last Updated: 25 Jan 2024 19:04 by ADMIN
Release LIB 2023.3.1315 (15 Jan 2024)

The first two pinned rows are scrolled outside of the viewport when you scroll. For example, if you pin 4 rows, the first two will be scrolled and you will see only the second two pinned. This reproduces in the Green, Windows 11, Crystal and Office2019 themes.

To work this around, set the UseLayoutRounding property of RadGridView to "False". Or use a different Telerik theme.

 

Completed
Last Updated: 20 Dec 2023 11:31 by ADMIN
Clicking on the edges of the cells of the GridViewPinRowColumn does not pin the row.
Completed
Last Updated: 13 Mar 2024 09:44 by ADMIN
Release 2024.1.219 (Preview)
The last empty column is very large when the column size is set in code.