A possible workaround is to predefine the CellTemplate of the column as well.
Unhandled exception System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it. at System.Windows.Threading.Dispatcher.VerifyAccess() at System.Windows.DependencyObject.GetValue(DependencyProperty dp) at Telerik.Windows.Data.SortDescriptorBase.get_SortDirection() at Telerik.Windows.Data.Expressions.SortDescriptorCollectionExpressionBuilder.Sort() at Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, IEnumerable`1 sortDescriptors) at Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, SortDescriptorCollection sortDescriptors) . . .
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.
A workaround for the issue is to use RadObservableCollection as a source collection. Before the items are added to it, call the its SuspendNotifications method. Respectively, after that call the ResumeNotifications one. Another approach would be to populate the items through the AddRange method of the collection.
To work this around you can set the EnableColumnGroupsVirtualization to False. Alternatively you can change the FrozenColumnCount before adding the columns, and reset it once the process is done. For example: gridTriffDetails.FrozenColumnCount = 0; gridTriffDetails.Columns.Add(newColumn); gridTriffDetails.Columns.Add(newColumn1); gridTriffDetails.Columns.Add(newColumn2); gridTriffDetails.FrozenColumnCount = 1;
1. Run the sample application. 2. Scroll to the last item. 3. Begin to resize the window. The direction is irrelevant. Only the horizontal scrollbar needs to be visible. 4. Observe that in the beginning of the resizing, the scrollbar auto scrolls upwards a little and the last item is half hidden.