A possible workaround is to show and hide the columns.
foreach (GridViewColumn col in TestGridView.Columns)
{
bool visibility = col.IsVisible;
col.IsVisible = true;
col.IsVisible = visibility;
}
This behavior is reproducible when the SelectionUnit property of the RadGridView is set to "FullRow".
SelectedCells collection is not of the selected row updated when new columns are added runtime. For example, you have selected the first row which has 3 cells. Then you add 2 new columns. Now the row has 5 cells but the selected cells collection still have 3.
A possible workaround which can be used is to reset the SelectedItem property of the RadGridView.
var selectedItem = testGrid.SelectedItem;
testGrid.SelectedItem = null;
this.testGrid.Columns.Add(new GridViewDataColumn() { Header = "Value3", DataMemberBinding = new Binding("Value3"), Width = 100 });
this.testGrid.Columns.Add(CreateColumn("Value4", "Value4"));
testGrid.SelectedItem = selectedItem;
radGridView has a feature to provides a suggest and append feature. Currently, there is the ability for the end user to inadvertently close this window. Please provide the opportunity via a property to disable the ability to close the search window. (currently, I am hooking the SearchPanelVisibilityChanged event, and forcing showSearchPanel = true at all times. Scheduled for:
The exposed property (SearchPanelCloseButtonVisibility) will be available with LIB (version 2018.3.1210) published on Monday, 10-th December, 2018.
As a workaround you can clear the SelectedCells collection in the Pasted event of the RadGridView.
The vertical scrollbar measure incorrectly when the control's ItemsSource is populated in its Loaded event. To reproduce this, set the ItemsSource when the control is initialized. And then populate it on Loaded. Also, to reproduce this you will need to define the columns manually. To resolve this, populate the data on initialization of the gridview. Or delay the population to happen after the Loaded event. You can use a dispatcher for this.
Setting the theme via the StyleManager.SetTheme(control, theme) method does not style the cell as expected when a CellStyle is defined for its parent column.
The current workaround is to explicitly set the theme via the style:
<Style x:Key="BlueCellStyle" TargetType="telerik:GridViewCell">
<Setter Property="Background" Value="PowderBlue"/>
<Setter Property="telerik:StyleManager.Theme" Value="VisualStudio2013" />
</Style>
ArgumentOutOfRangeException is thrown when performing a CollectionChange with Replace action on the underlying collection and there's an applied FilterDescriptor.