The class Telerik.Windows.Data.QueryableExtensions has a static dictionary "providerIsEntityFrameworkCore"
That dictionary will hold a reference (forever) to a collection that is set as Source for the GridView.
Reason is that non IQueryable-types will be wrapped in a EnumerableQuery<T> that will return itself as the provider (https://referencesource.microsoft.com/#System.Core/System/Linq/SequenceQuery.cs,44), encapsulating the reference.
This must be something introduced recently.
In this particular case, the DisplayIndex properties of the parent and child grid are bound to property from our ViewModel. When the parent grid columns are reordered runtime, the columns of the child grid are also reordered. But when sorting is performed by clicking on a column header, an exception is thrown.
Changing the TextAlignment property of the GridViewExpressionColumn doesn't refresh the cells, thus the change is not visible in the UI.
To work this around, remove and add again the corresponding column in the Columns collection of RadGridView. Or define a CellTemplate and use a TextBlock control with its TextAlignment bound to the column's property.
<telerik:GridViewExpressionColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
TextAlignment="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewCell}, Path=Column.TextAlignment}" />
</DataTemplate>
</telerik:GridViewExpressionColumn.CellTemplate>
Memory leak appears when exporting to Xlsx and Pdf formats.
To work this around, you can call one of the export methods GridViewDataControlExportExtensions with empty arguments.
Workbook workbook = this.gridView.ExportToWorkbook();
try
{
GridViewDataControlExportExtensions.ExportToWorkbook(new RadGridView(), new GridViewDocumentExportOptions());
GridViewDataControlExportExtensions.ExportToWorkbook(null);
}
catch (ArgumentException)
{
}
I am using a RadGridView to display appointments. I am adding paging to the control with RadDataPager. I am setting the ItemSource property for the RadGridView to {Binding Path=PagedSource, ElementName=unscheduledWorkOrdersRadDataPager }. I am then overriding the ConvertDraggedData(object data) method and using the DataObjectHelper class in order to obtain data from the object data parameter and then setting the returned IEnumerable<IOccurence> accordingly.
The problem is that whenever I added paging to the RadGridView. The DataObjectHelper is not able to properly retrieve the dragged data from the object data parameter.
As Windows application use a common clipboard, there is a potential risk for causing a ComInterop exception while copying data from RadGridView. Workaround: Process exceptions in application logic
If in the content of RadGridView.ControlPanelItem has a binding with a RelativeSource or ElementName and the grid is placed in the collapsed UserControl, a binding error is thrown in the output window.