This question is locked. New answers and comments are not allowed.
I have encountered a problem with using a System.Windows.Data.PagedCollectionView as the ItemSource of a RadDataGrid.
Summary of issue:
When a column in the grid is sorted descending and another column (not sorted) is then edited, the edited row moves to an unexpected index. This does not occur with the Microsoft DataGrid.
Steps to reproduce:
1. Have a RadDataGrid's ItemSource bound to an instance of PagedCollectionView populated with some data.
2. Sort a column descending via the RadDataGrid column header.
3. Edit the cell of another column (not the column that is sorted).
4. End the cell/row edit by press ENTER or clicking on another row.
Result: The row you just edited will move somewhere else when it shouldn't.
How I am initialising the PagedCollectionView:
(NOTE: SomePoco has SortableField + 10 other int fields)
I have also attached screen shots of the issue occurring.
Environment Details:
Telerik Controls Version: 2011.3.1220.1050
Silverlight Version: 5.0.61118.0
Browser: IE9 version 9.0.8112.16421
OS: Windows 7 Enterprise (Version 6.1 Build 7600)
Thank you for your time.
Summary of issue:
When a column in the grid is sorted descending and another column (not sorted) is then edited, the edited row moves to an unexpected index. This does not occur with the Microsoft DataGrid.
Steps to reproduce:
1. Have a RadDataGrid's ItemSource bound to an instance of PagedCollectionView populated with some data.
2. Sort a column descending via the RadDataGrid column header.
3. Edit the cell of another column (not the column that is sorted).
4. End the cell/row edit by press ENTER or clicking on another row.
Result: The row you just edited will move somewhere else when it shouldn't.
How I am defining the grid in XAML:<
telerik:RadGridView
ItemsSource
=
"{Binding}"
/>
How I am initialising the PagedCollectionView:
public
MainPage()
{
InitializeComponent();
// Initialize test data. Give SortableField some unsorted values.
SomePoco[] data =
new
SomePoco[]
{
new
SomePoco() { SortableField =
"D"
},
new
SomePoco() { SortableField =
"C"
},
new
SomePoco() { SortableField =
"B"
},
new
SomePoco() { SortableField =
"A"
},
new
SomePoco() { SortableField =
"H"
},
new
SomePoco() { SortableField =
"G"
},
new
SomePoco() { SortableField =
"F"
},
new
SomePoco() { SortableField =
"E"
},
new
SomePoco() { SortableField =
"L"
},
new
SomePoco() { SortableField =
"K"
},
new
SomePoco() { SortableField =
"J"
},
new
SomePoco() { SortableField =
"I"
},
new
SomePoco() { SortableField =
"P"
},
new
SomePoco() { SortableField =
"O"
},
new
SomePoco() { SortableField =
"N"
},
new
SomePoco() { SortableField =
"M"
},
new
SomePoco() { SortableField =
"T"
},
new
SomePoco() { SortableField =
"S"
},
new
SomePoco() { SortableField =
"R"
},
new
SomePoco() { SortableField =
"Q"
},
new
SomePoco() { SortableField =
"X"
},
new
SomePoco() { SortableField =
"W"
},
new
SomePoco() { SortableField =
"V"
},
new
SomePoco() { SortableField =
"U"
},
new
SomePoco() { SortableField =
"Z"
},
new
SomePoco() { SortableField =
"Y"
}
};
this
.DataContext =
new
PagedCollectionView(data);
}
I have also attached screen shots of the issue occurring.
Environment Details:
Telerik Controls Version: 2011.3.1220.1050
Silverlight Version: 5.0.61118.0
Browser: IE9 version 9.0.8112.16421
OS: Windows 7 Enterprise (Version 6.1 Build 7600)
Thank you for your time.