Available in LIB version 2017.3.1204, it will be also available in the R1 2018 Release.
Available in LIB version 2017.3.1127, it will be also available in the R1 2018 Release.
Available in LIB version 2017.3.1127, it will be also available in the R1 2018 Release.
When applying VQCV with custom IEnumerable as a source to the ItemsSource of the grid and filters grid through filtering control, ExportToXlsx exports wrong items. Available in LIB version 2017.3.1127, it will be also available in the R1 2018 Release.
Available in LIB version 2017.3.1113, it will be also available in the R1 2018 Release.
When setting the VirtualItemCount on refreshing the data source, the scrollbar jumps to the top. If the VirtualItemCount is initially set, the behavior is not reproduced. The workaround is to use the scrolling mechanism of the control and scroll back to the desired item.
In an application, I bind a DataTable with many rows to a RadGridView. As soon as, the datatable is binded, I see the memory needed by the application growing. The problem is that the binding is done each time the content of the DataTable is changing. It seems that the memory is never cleared and keep growing until a MemoryException is thrown. This does not appear with a WPF standard GridView. Do you know why ?
I have a RadGridView and bind its ItemsSource and its SelectedItem to properties of the ViewModel (DataContext). When the ViewModel is created, the property bound to ItemsSource is filled and the property bound to SelectedItem is set to one of the items in the collection. However, when the GridView is displayed, the property is first set to null and then set to the first item in the collection. I assume that the binding of the SelectedItem is evaluated before the binding of the ItemsSource, so the grid is empty and the desired item can't be selected. Is there any way to influence the order, in which the binding are evaluated? Or is there any other way to avoid that the SelectedItem is changed? A similar issue is described here: http://www.telerik.com/forums/selecteditem-binding-issue Unfortunately, I couldn't to find the support ticket mentioned in this thread.
Edit: We are declining this bug as originally the export options were not meant to respect group properties but only some global GridView properties. However we will add such option in GridViewDocumentExportOptions class. You can follow this feature request => https://feedback.telerik.com/Project/143/Feedback/Details/229211-gridview-add-option-in-gridviewdocumentexportoptions-to-include-exclude-grouph
Currently, the following workaround can be applied: private void RadGridView_Loaded(object sender, RoutedEventArgs e) { var gridView = sender as RadGridView; foreach (var column in gridView.Columns) { if (!column.IsResizable) { Dispatcher.BeginInvoke((Action) (() => { var radGridView = column.Parent; foreach (var header in radGridView.ChildrenOfType<GridViewHeaderCell>()) { if (header.Column.DisplayIndex == column.DisplayIndex) { var leftGripper = header.ChildrenOfType<Thumb>().Where(x => x.Name == "PART_LeftHeaderGripper").First(); { leftGripper.Visibility = Visibility.Collapsed; } } else if (header.Column.DisplayIndex == (column.DisplayIndex - 1)) { var rightGripper = header.ChildrenOfType<Thumb>().Where(x => x.Name == "PART_RightHeaderGripper").First(); { rightGripper.Visibility = Visibility.Collapsed; } } } }), DispatcherPriority.Render); } } }
This is reproducible in a hierarchical scenario. The nested gridview loses its selection when its parent row is scrolled out of the viewport.
Update: Before our change the GridViewGroupFooterCell content was right aligned and the GridViewFooterCell content was left aligned. We decided to unify them by setting default left alignment to both. This can be easily modified by changing the Column FooterTextAlignment property to Right or by using the following implicit styles: <Style TargetType="telerik:GridViewGroupFooterCell" BasedOn="{StaticResource GridViewGroupFooterCellStyle}"> <Setter Property="HorizontalContentAlignment" Value="Right"/> </Style> <Style TargetType="telerik:GridViewFooterCell" BasedOn="{StaticResource GridViewFooterCellStyle}"> <Setter Property="TextAlignment" Value="Right"/> </Style> The fix is available in R3 2017 of UI for WPF.
workaround: public MainWindow() { InitializeComponent(); this.grid.Loaded += grid_Loaded; } void grid_Loaded(object sender, RoutedEventArgs e) { this.grid.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "PART_OuterGrid").RowDefinitions[1].Height = GridLength.Auto; var cells = this.grid.ChildrenOfType<GridViewHeaderCell>(); foreach (GridViewHeaderCell cell in cells) { cell.ChildrenOfType<Grid>().FirstOrDefault(x => x.Name == "PART_OuterGrid").RowDefinitions[1].Height = GridLength.Auto; } }
Current workaround for the affected themes - Define the following control template for the GridViewCheckBox: <ControlTemplate x:Key="GridViewCheckBoxTemplate" TargetType="telerik:GridViewCheckBox"> <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Width="13" Height="13"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CheckStates"> <VisualState x:Name="Checked"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="CheckedPath" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="0"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Unchecked"/> <VisualState x:Name="Indeterminate"> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="IndeterminatePath" Storyboard.TargetProperty="(UIElement.Visibility)"> <DiscreteObjectKeyFrame KeyTime="0"> <DiscreteObjectKeyFrame.Value> <Visibility>Visible</Visibility> </DiscreteObjectKeyFrame.Value> </DiscreteObjectKeyFrame> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Grid Background="Transparent"> <Border BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{telerik:Office2016Resource ResourceKey=CornerRadius}"/> <Border x:Name="IndeterminatePath" Width="9" Height="9" VerticalAlignment="Center" HorizontalAlignment="Center" Background="{telerik:Office2016Resource ResourceKey=IconBrush}" Visibility="Collapsed"/> <TextBlock x:Name="CheckedPath" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" FontWeight="Normal" FontStyle="Normal" Foreground="{TemplateBinding Foreground}" FontFamily="{StaticResource TelerikWebUI}" telerik:GlyphAdorner.ShowGlyphInDesignTime="True" Opacity="1" Margin="-1 0 0 0" Visibility="Collapsed"> <Run Text="{StaticResource GlyphCheck}"/> </TextBlock> </Grid> </Grid> </ControlTemplate> <Style TargetType="telerik:GridViewCheckBox" BasedOn="{StaticResource GridViewCheckBoxStyle}"> <Setter Property="Template" Value="{StaticResource GridViewCheckBoxTemplate}"/> </Style> Fix available in LIB version 2017.2.814.
A workaround it so use a GridViewDataColumn and define a CheckBox within its CellTemplate. Fix available in LIB version 2017.2.814.
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;
Available in LIB version: 2017.2.703