Telerik MAUI 5.0.0. RadDataForm throws error "Parent cannot be set on this Brush."

1 Answer 98 Views
DataForm
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Kamran asked on 03 Mar 2023, 04:35 PM

I am exploring Telerik UI for MAUI. I added simple RadDataForm control to content page which trows exception Parent cannot be set on this Brush. 

I have attached sample project for reference. Please assist me if I am missing something.

Same sample project is working fine If I add Telerik MAUI 5.0.1 trail.

Following are exception details.

 

   at Microsoft.Maui.Controls.ImmutableBrush.OnParentChangingCore(Element oldParent, Element newParent)
   at Microsoft.Maui.Controls.Element.set_Parent(Element value)
   at Telerik.Maui.Controls.RadEntry.OnBorderBrushPropertyChanged(Object newValue)
   at Telerik.Maui.Controls.RadEntry.<>c.<.cctor>b__15_5(BindableObject b, Object o, Object n)
   at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
   at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
   at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value, Boolean fromStyle, Boolean checkAccess)
   at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value, Boolean fromStyle)
   at Microsoft.Maui.Controls.Setter.Apply(BindableObject target, Boolean fromStyle)
   at Microsoft.Maui.Controls.Style.ApplyCore(BindableObject bindable, Style basedOn)
   at Microsoft.Maui.Controls.Style.Microsoft.Maui.Controls.IStyle.Apply(BindableObject bindable)
   at Microsoft.Maui.Controls.MergedStyle.SetStyle(IStyle implicitStyle, IList`1 classStyles, IStyle style)
   at Microsoft.Maui.Controls.MergedStyle.set_Style(IStyle value)
   at Microsoft.Maui.Controls.NavigableElement.<>c.<.cctor>b__22_0(BindableObject bindable, Object oldvalue, Object newvalue)
   at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
   at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
   at Microsoft.Maui.Controls.BindingExpression.ApplyCore(Object sourceObject, BindableObject target, BindableProperty property, Boolean fromTarget)
   at Microsoft.Maui.Controls.BindingExpression.Apply(Object sourceObject, BindableObject target, BindableProperty property)
   at Microsoft.Maui.Controls.Binding.<ApplyRelativeSourceBinding>d__27.MoveNext()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 03 Mar 2023, 05:34 PM

Hi Kamran,

I'm not 100% sure of your question as you also state the solution in your question (update to 5.0.1).

Please take a minute to read the release notes for v5.0.1 (release notes for every release can always be seen here), that will explain the problem and why the newer v5.0.1 works for you. In case you were not aware, the RadDataForm uses a RadNumericInput for numeric fields. 

To summarize, you do not want to be using 5.0.0 anymore now that we've released 5.0.1. It doesn't matter if it's Trial package or not, what is important is that you're using the v5.0.1 release that contains the most recent fixes.

Just to make sure, I tested using your project. when I update it to v5.0.1, I can confirm the problem is gone.

Regards,
Lance | Manager Technical Support
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 03 Mar 2023, 05:56 PM

Hi Lance,

Thanks for providing me details. Currently I have version 5.0.0 and we are not ready to upgrade our project to 5.0.1. I used trail version to make sure there is no issue in style (if any) or any other dependency. 

Just after posting this issue, I downgrade attached sample to net 6.0 while keeping telerik version 5.0.0. The issue is resolved. It seems version 5.0.0 is not compatible with net 7.0.

 

Lance | Senior Manager Technical Support
Telerik team
commented on 03 Mar 2023, 09:03 PM

Correct, the fundamental issue was with .NET 7. If you can stay on .NET 6 (which is a Long term Release anyways), then you should be fine.
Tags
DataForm
Asked by
Kamran
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or