Unplanned
Last Updated: 19 Nov 2024 11:34 by ADMIN

IndexOutOfRangeException occurs in some situations when updating the ItemsSource collection of RadDataGrid. In order to reproduce the issue, the ItemsSource collection should be cleared by calling its Clear method. When you add a specific number of items after that the error occurs. The number of added items depends on the viewport's height.

To work this around, instead of calling the Clear() method of the ItemsSource collection, remove the items one by one.

var collection = (ObservableCollection<MyModel>)this.dg.ItemsSource;
 while (collection.Count > 0)
 {
     collection.RemoveAt(collection.Count - 1);
 }

 

Completed
Last Updated: 12 Nov 2024 07:10 by ADMIN
Release 2.11.0 (2024 Q4)
InvalidCastException when removing an item from a sorted bound grid. 
Unplanned
Last Updated: 29 Oct 2024 17:24 by Martin Ivanov

The click actions (like cell selection and sorting) stop working when RadDataGrid is hosted in a RadTabControl or TabView. To reproduce this, you should select the tab item with the data grid, then select another tab, and select back the tab with the data grid. This prevents the hit testing in the RadDataGrid element.

The issue occurs because the hit test service used in the RadDataGrid implementation. The hit test service relies on the IsLoaded property of RadDataGrid (inherited from RadControl). The property is set in the Loaded and Unloaded events. However, when switching tabs, the Unloaded event is invoked on deselection, but on second selection of the same tab, the Loaded event is never called again, thus IsLoaded is false.

To work this around, you can subscribe to the PreviewSelectionChanged event of RadTabControl and manually update the internal isLoaded field of the data grid.

 

 private void RadTabControl_PreviewSelectionChanged(object sender, Telerik.UI.Xaml.Controls.RadSelectionChangedEventArgs e)
 {
     if (e.AddedItems.Count > 0)
     {
         var gridView = ((RadTabItem)e.AddedItems[0]).Content as RadDataGrid;
         var isLoadedField = typeof(RadControl).GetField("isLoaded", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
         isLoadedField.SetValue(gridView, true);
     }
 }

 

Unplanned
Last Updated: 23 Aug 2024 09:55 by ADMIN
Created by: Cody
Comments: 2
Category: DataGrid
Type: Bug Report
1
DataGrid: Column header missing margin.
Completed
Last Updated: 05 Aug 2024 05:52 by ADMIN
Release 2.10.1 (2024 Q3)
When the RadPropertyGrid control displays nested objects and grouping is applied, expanding the inner group for the first time collapses the parent one. On a second expansion of the inner object, the parent group is not collapsed.
Completed
Last Updated: 05 Aug 2024 05:52 by ADMIN
Release 2.10.1 (2024 Q3)
Reordering columns via drag and drop throws an exception.
Completed
Last Updated: 05 Aug 2024 05:52 by ADMIN
Release 2.10.1 (2024 Q3)
A memory leak occurs and the memory constantly increases each time the ItemsSource of the RadCartesianChart's series is set to another collection.
Unplanned
Last Updated: 19 Jul 2024 08:25 by Carlos
 Using the tab key to navigate the cells needs a few extra keystrokes to return to the beginning of the row.
Unplanned
Last Updated: 21 Jun 2024 08:11 by Martin Ivanov

The scrolling in RadChat feels incosistent and not smooth when having messages with different heights.

To work around this you can modify the ControlTemplate of ChatMessageList in order to set the Background property of the ScrollViewer element to a value different than null. For example, Transparent.

 <Application.Resources>
     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
			 <ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/>
			 <!-- Other merged dictionaries here -->
         </ResourceDictionary.MergedDictionaries>
			<!-- Other app resources here -->

		<Style  TargetType="chat:ChatMessageList" BasedOn="{StaticResource ChatMessageListStyle}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="chat:ChatMessageList">
						<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<!--The background of the Scrollviewer is set here-->
							<ScrollViewer x:Name="PART_ScrollViewer" 
										  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" 
										  BorderThickness="0"
										  Background="Transparent">
								<ItemsPresenter Margin="{TemplateBinding Padding}" />
							</ScrollViewer>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</ResourceDictionary>
 </Application.Resources>

Unplanned
Last Updated: 10 Jun 2024 15:45 by Martin Ivanov

The list with the RadChat messages disappears when the ImageSource of ImageCardMessage is assigned after the control is loaded.

To work this around, you can pre-set the ImageSource of the image cards using a placeholder image.

Declined
Last Updated: 03 Jun 2024 09:29 by ADMIN
Created by: Biju
Comments: 1
Category: UI for WinUI
Type: Bug Report
0
No form controls are visible when running the program.  Problem affects about half of users
Declined
Last Updated: 03 Jun 2024 09:27 by ADMIN

Hi Support

 

I'm using RadDataGrid on several pages in my application. There a pages where the scrollbar does not appear. On some pages it works.

The structure of the pages is similar. What are your suggestions to look for.

 

Regards,

Hans

Unplanned
Last Updated: 28 May 2024 08:48 by ADMIN

Hello, I tried to implement the sample application from your docs. (https://docs.telerik.com/devtools/winui/controls/raddatagrid/row-details)

But it seems to be not working, the detail area is not displayed completely. Only one column.

I have a similar behavior on another application.

Details:

  • .NET 7
  • Windows 11 Pro Version 23H2 (22631.3155)
  • Telerik WinUI 2.9.0

Completed
Last Updated: 07 May 2024 20:01 by ADMIN
Release 2.10.0 (2024 Q2)
Created by: Martin Ivanov
Comments: 0
Category: Chat
Type: Bug Report
0
A memory leak occurs when scrolling messages. Because of the UI virtualization the message visual gets reloaded on scrolling up and down, which subscribes them to a specific event, but the unsubscription doesn't always happen which brings the memory issue.
Completed
Last Updated: 07 May 2024 20:01 by ADMIN
Release 2.10.0 (2024 Q2)
The status indicator of the inline message is positioned on the left side of the message. It should be positioned below it. 
Completed
Last Updated: 13 Mar 2024 09:40 by ADMIN
Release 2.9.0
The touch pointer capture is never released when you swipe an item in order to show its swipe content. Because the touch capture is never released, the pointer released action is never fired and the drag/drop operation cannot finish. This leads to glitches in the item. Clicking in swipe content can make it disappear. Also, if you are on a device that support both mouse and touch, you can notice the issue by swiping with touch and then mouse move. The mouse/touch device is captured and you will see that item moves on mouse move even if the left button is not pressed.
Unplanned
Last Updated: 11 Mar 2024 09:07 by ADMIN
Created by: Stenly
Comments: 2
Category: NumericBox
Type: Bug Report
1
The RadNumericBox control does not accept decimal values.
Unplanned
Last Updated: 11 Mar 2024 09:04 by ADMIN
Created by: Stenly
Comments: 2
Category: NumericBox
Type: Bug Report
1
The RadNumericBox control prevents the user from inputting negative values.
Unplanned
Last Updated: 15 Feb 2024 15:34 by Martin Ivanov

The field filters in the DataGridNumericalFilterControl of DataGridNumericalColumn are using RadNumericBox controls for the input visuals. By default RadNumericBox is limited to values between 0 and 100, which means you cannot enter values outside of this range.

To work this around, you can re-template the DataGridNumericalFilterControl in order to set the Minimum and Maximum properties of the RadNumericBox element to NaN.

<Application
    x:Class="App3.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App3" xmlns:telerikDataGrid="using:Telerik.UI.Xaml.Controls.Grid.Primitives" xmlns:telerikInput="using:Telerik.UI.Xaml.Controls.Input">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                <ResourceDictionary Source="ms-appx:///Telerik.WinUI.Controls/Themes/Generic.xaml"/>
            </ResourceDictionary.MergedDictionaries>

            <Style TargetType="telerikDataGrid:DataGridNumericalFilterControl">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerikDataGrid:DataGridNumericalFilterControl">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <ComboBox x:Name="PART_OperatorCombo"
                                          HorizontalAlignment="Stretch"
                                          ItemsSource="{Binding OperatorsList}"
                                          SelectedItem="{Binding FilterDescriptor.Operator, Mode=TwoWay, Converter={StaticResource FilterOperatorConverter}}"
                                          DisplayMemberPath="DisplayText">
                                </ComboBox>
                                <telerikInput:RadNumericBox x:Name="PART_ValueBox"
                                                            Minimum="NaN"
                                                            Maximum="NaN"
                                              HorizontalAlignment="Stretch"
                                              Value="{Binding FilterDescriptor.Value, Mode=TwoWay}"
                                              Grid.Row="1" Margin="0 10 0 0"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Unplanned
Last Updated: 07 Feb 2024 11:21 by Martin Ivanov

Dynamically changing the Header of a RadDataGrid column is clearing the header visual's content. This means that you no longer see the header. To reproduce this the SizeMode of the column should be set to Fixed.

To work this around, instead of changing the Header of the column, you can assign the Header initially to a visual element - like TextBox - and change its content (like the Text property). Or alternatively, avoid the Fixed SizeMode.

1 2 3