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);
}
Unhandled COMException is thrown when the MessageGroup elements are removed from the chat's visual tree. This can happen when the group view models are removed from the MessageGroups or MessageListItems collections.
To work this around, you can get the corresponding MessageGroup container and set its DataContext to null before removing the MessageGroupViewModel from the MessageGroups or MessageListItems collections.
var groupVisuals = chat.ChildrenOfType<MessageGroup>();
foreach (MessageGroup group in groupVisuals)
{
group.DataContext = null;
}
Hi,
I am planning to build one of the pages of my software around the amazing Timebar control but I experience many issues. With this code:
<Grid Height="200">
<tcontrols:RadTimeBar x:Name="timeBar" Height="150">
<tcontrols:RadTimeBar.Intervals>
<tdataViz:YearInterval />
<tdataViz:MonthInterval />
<tdataViz:WeekInterval />
<tdataViz:DayInterval />
</tcontrols:RadTimeBar.Intervals>
<tcontrols:RadTimeBar.Content>
<tdataViz:RadLinearSparkline x:Name="timeSparkline"/>
</tcontrols:RadTimeBar.Content>
</tcontrols:RadTimeBar>
</Grid>
Hi Team,
Please implement this feature for WinUI =>
If you'd like to see a real test project that demonstrates the problem, you can use the repro attached to my Forum post => Spline series are incorrectly drawn in UI for WinUI.
Thank you,
Sébastien
The following exception is thrown when expanding row details with a height larger than the row height:
ArgumentOutOfRangeException: "Non-negative number required."
Implement print support when is supported from the framework:
Question: Printing in WinUI 3 Desktop · Issue #4419 · microsoft/microsoft-ui-xaml (github.com)
"Processing Resources failed" compile-time error is thrown when the following nuget packages are referenced together:
- Telerik.ReportViewer.WinUI
- Telerik.WinUI.Controls
It is enough only to reference the packages and try to build the project.
The error appears also if you try to reference the .dll instead of nuget packages. But only in case the Telerik.WinUI.Controls.dll file is not referenced from the installation folder of the Telerik Reporting product.
Error details:
1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry. 1>WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI222: 0x80073b0f - Unspecified error occurred.