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 ?
In Office2016 when we increase the DPI of the Windows a left border in the header of column disappears. As a workaround you can set the Width property of all columns.
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.
Available in LIB version: 2017.2.724
Available in LIB version: 2017.2.710
Available in LIB version: 2017.2.703
I am setting the status of the item to Declined as the reported behavior is due to the fact that the RowDetailsVisibilityMode is set to VisibleWhenSelected. The default behavior of RadGridView is to split the merged cell when a row with expanded row details is added. Thus, the reported issue you are is the expected one. If setting the RowDetailsVisibilityMode is removed the control will behave as expected.
By default, the RadGridView will expand its rows to fit whatever the size of the text content. If you have a large amount of text with newlines, it essentially renders the grid unusable in this state. The thread http://www.telerik.com/forums/limit-row-height suggests two workaround: 1) using a converter to remove newlines- this is a bad solution because it means the binding on the column must be one-way. 2) Applying styling to the grid's textblock- also not great because its non-obvious and requires a lot of boilerplate. My suggestion is two properties on the RadGridView: MaxRowHeight and MultilineRowContentBehavior. This second property would determine what happens when a row has multiline content and would take an enumeration: SizeHeightToContent- the current behavior. SingleLineExpandOnEdit- when displaying, shows only a single line of the multiline content. When editing, expands the TextBox to fit the content. SingleLine- displays and edits the content in a single line.
workaround is to override the OnInitialized of the custom column: protected override void OnInitialized(EventArgs e) {/* //if XAML assemblies Theme theme = StyleManager.GetTheme(this); Type themeType = null; if (theme != null) { themeType = theme.GetType(); } this.DefaultStyleKey = new ThemeResourceKey() { ElementType = typeof(Telerik.Windows.Controls.GridViewColumn), ThemeType = themeType };*/ }
The workaround is to use a RadTabControl and set its IsContentPreserved to True Available in LIB version: 2017.2.626
As a temporary workaround, the following custom keyboard command provider can be used: public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider { private GridViewDataControl parentGrid; public CustomKeyboardCommandProvider(GridViewDataControl grid) : base(grid) { this.parentGrid = grid; } public override IEnumerable<ICommand> ProvideCommandsForKey(Key key) { List<ICommand> commandsToExecute = base.ProvideCommandsForKey(key).ToList(); if (key == Key.Enter) { commandsToExecute.Clear(); commandsToExecute.Add(RadGridViewCommands.CommitEdit); commandsToExecute.Add(RadGridViewCommands.BeginEdit); commandsToExecute.Add(RadGridViewCommands.MoveDown); } return commandsToExecute; } }
When pasting data to create new rows(which are created in the AddingNewDataItem event), the pasting logic on the existing cells stops working. Available in LIB version: 2017.2.529
Will be nice to have this feature. I have a solution from support by replacing " with *. But it's the way search should work. Click on link and go to Wildcard *: Searching for Unknown Strings section. https://www.howtogeek.com/school/learning-windows-search/lesson4/