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);
}

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: 28 Jun 2023 13:29 by ADMIN
Release LIB 2023.1.703 (3 Jul 2023)
When using XAML binaries and applying the Windows 11 theme, the group expander feature in GridView is not working.
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: 02 Jun 2023 12:07 by ADMIN
Created by: alex
Comments: 1
Category: GridView
Type: Feature Request
1

Hello,

Regarding this forum question, it will be good if you add the attached property VisibleColumnsCount or IsAnyColumnVisible so I can hide the rows when there are 0 columns. Please read the following link for full information:

https://www.telerik.com/forums/radgridview---hide-rows-when-columns-are-not-visible

 

I have a license ok behalf my company

Completed
Last Updated: 25 May 2023 13:36 by ADMIN
Completed
Last Updated: 25 May 2023 13:36 by ADMIN
Completed
Last Updated: 25 May 2023 13:35 by ADMIN
Created by: Jack
Comments: 0
Category: GridView
Type: Bug Report
0
Hello

Good job with the Fluent theme! I'm using the core styles with validation in my GridViews and have noticed that the bottom border is not/barely visible in invalid grid cells (see attached screenshot).

I can fix this by taking a copy of GridViewCellCoreValidationTemplate and adding Margin="0 0 0 1" to Background_Invalid.

Cheers
Jack
Completed
Last Updated: 25 May 2023 13:34 by ADMIN
ADMIN
Created by: Dinko | Tech Support Engineer
Comments: 0
Category: GridView
Type: Feature Request
6

			
Completed
Last Updated: 25 May 2023 13:29 by ADMIN
The issue is reproduced only when the items in the source collection have properties with duplicated values and they are sorted before the selection is processed. If the property values are unique or the SelectionMode is set to Multiple, the selection works as expected both with sorted and unsorted data. The workaround is to use either Multiple SelectionMode, or Cell/Mixed SelectionUnit.
Completed
Last Updated: 24 May 2023 06:56 by ADMIN
Release R2 2023
The functionality of the Search As You Type feature could be extended so that values of the type string can be filtered by the IsEqualTo operator, rather than the Contains one.
Completed
Last Updated: 23 May 2023 11:27 by ADMIN
Release R2 2023
When the ItemsSource of the RadGridView is an empty collection of objects implementing the ICustomTypeDescriptor interface and a column is added an exception is thrown. 
Unplanned
Last Updated: 18 May 2023 08:23 by Martin Ivanov
Created by: Martin Ivanov
Comments: 0
Category: GridView
Type: Feature Request
1

Currently, the GridViewMergedCell cannot be selected. Allow selecting the merged cells via the UI or code. 

At the moment RadGridView has only a CurrentMergedCell property.

Unplanned
Last Updated: 17 May 2023 12:37 by Vladimir

In the following scenario:

<telerik:RadGridView x:Name="clubsGrid" ItemsSource="{Binding Foos}" AutoGenerateColumns="False">
	<telerik:RadGridView.Columns>
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo1}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo2}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo3}" Width="*" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo4}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo5}" MinWidth="100" />
		<telerik:GridViewDataColumn DataMemberBinding="{Binding Foo6}" MinWidth="100" />
	</telerik:RadGridView.Columns>
</telerik:RadGridView>

<DataGrid ItemsSource="{Binding Foos}" AutoGenerateColumns="False" Grid.Row="1">
	<DataGrid.Columns>
		<DataGridTextColumn Binding="{Binding Foo1}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo2}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo3}" Width="*" />
		<DataGridTextColumn Binding="{Binding Foo4}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo5}" MinWidth="100" />
		<DataGridTextColumn Binding="{Binding Foo6}" MinWidth="100" />
	</DataGrid.Columns>
</DataGrid>

in the native DataGrid after the Width of Foo4 column is increased towards Foo3, then the Width of Foo5/Foo6 columns can also be increased. We can implement similar behavior in the RadGridView as well. 

 

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.
Completed
Last Updated: 20 Apr 2023 06:37 by ADMIN
Release LIB 2023.1.424 (24 Apr 2023)
Using a screen reader to read the contents of the RadGridView reads column display indexes incorrectly when columns are frozen on the right.
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.