Completed
Last Updated: 11 Aug 2022 11:48 by ADMIN
Release LIB 2022.2.815 (15 August 2022)
Martin Ivanov
Created on: 07 Jun 2022 14:08
Category: GridView
Type: Bug Report
1
GridView: Column with IsReorderable set to False can be reordered
If you add a column with IsReorderable set to False and then drop another column over it, nothing should happen. However, sometimes the drop is executed and the not reorderable column is moved to another index.

To work this around, cancel the reordering in the ColumnReordering event if the drop target column cannot be reordered.

private void RadGridView_ColumnReordering(object sender, Telerik.Windows.Controls.ColumnReorderingEventArgs e)
{
	int notResizeableColumnIndex = 1;
	if (e.NewDisplayIndex == notResizeableColumnIndex)
	{
		e.Cancel = true;
	}
}
0 comments