In our application we use RadDataForm to display some properties of an object(the data source object). Everything works fine, but when running the application we have spotted that two binding errors occurs. The binding errors occurs even if we don't set any proprieties of RadGridView. Below is the code we have tested(an empty default control):
<
telerik:RadDataForm
>
</
telerik:RadDataForm
>
System.Windows.Data Error: BindingExpression path error: 'CommitButtonVisibility' property not found on 'Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' 'Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' (HashCode=44903457). BindingExpression: Path='CommitButtonVisibility' DataItem='Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' (HashCode=44903457); target element is 'Telerik.Windows.Controls.RadButton' (Name='PART_CommitButton'); target property is 'Visibility' (type 'System.Windows.Visibility')..
System.Windows.Data Error: BindingExpression path error: 'CancelButtonVisibility' property not found on 'Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' 'Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' (HashCode=44903457). BindingExpression: Path='CancelButtonVisibility' DataItem='Client.Silverlight.ViewModels.ReferenceWorkspaceViewModel' (HashCode=44903457); target element is 'Telerik.Windows.Controls.RadButton' (Name='PART_CancelButton'); target property is 'Visibility' (type 'System.Windows.Visibility')
Best regards,
Alexandru
8 Answers, 1 is accepted
Actually, this is a known issue and it is due to a late setting of the DataContext of RadDataForm. You could ignore those exceptions as they will not affect in any way the behavior of the control. In the meantime we are working on resolving the issue since it is a bit annoying having them displayed in the output.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Any news on this?
Few releases later, as of 2012 Q1 SP1 the problem is still there.
We have investigated this issue but unfortunately we are still not ready with a viable fix that won't be a breaking change for our clients. As my colleague has mentioned in the previous post, these errors should not effect by any means you application's performance or user experience. However, I perfectly understand your concerns about having unhandled errors in the output, so that we will do our best to introduce the fix as soon as possible. I will mark this thread in order to notify you of any updates on this.
Greetings,
Ivan Ivanov
the Telerik team
These errors were fixed with our latest Q release. You can test this by yourselves with the latest version of our controls - 2012.2.0625.
Greetings,
Ivan Ivanov
the Telerik team
System.Windows.Data Error: BindingExpression path error: 'CommitButtonVisibility' property not found on 'GlobalLabManager.ViewModels.ManageResourcesViewModel' 'GlobalLabManager.ViewModels.ManageResourcesViewModel' (HashCode=22521054). BindingExpression: Path='CommitButtonVisibility' DataItem='GlobalLabManager.ViewModels.ManageResourcesViewModel' (HashCode=22521054); target element is 'Telerik.Windows.Controls.RadButton' (Name='PART_CommitButton'); target property is 'Visibility' (type 'System.Windows.Visibility')..
System.Windows.Data Error: BindingExpression path error: 'CancelButtonVisibility' property not found on 'GlobalLabManager.ViewModels.ManageResourcesViewModel' 'GlobalLabManager.ViewModels.ManageResourcesViewModel' (HashCode=22521054). BindingExpression: Path='CancelButtonVisibility' DataItem='GlobalLabManager.ViewModels.ManageResourcesViewModel' (HashCode=22521054); target element is 'Telerik.Windows.Controls.RadButton' (Name='PART_CancelButton'); target property is 'Visibility' (type 'System.Windows.Visibility')..
Which is the version of RadControls that you are currently using? I have tested it with Q2 SP1 without any success in reproducing the issue. I am attaching a very simple test project. Can you please have a look and tell us whether the are any notable differences between my approach and yours.
Regards,Ivan Ivanov
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
<
telerik:RadDataForm
x:Name
=
"_equipmentDetail"
ItemsSource
=
"{Binding Equipment}"
CurrentItem
=
"{Binding SelectedEquipment, Mode=TwoWay}"
Grid.Column
=
"1"
Grid.Row
=
"1"
AutoCommit
=
"True"
AutoGenerateFields
=
"False"
EditTemplate
=
"{StaticResource EquipmentEditItem}"
NewItemTemplate
=
"{StaticResource EquipmentEditItem}"
ReadOnlyTemplate
=
"{StaticResource EquipmentReadItem}"
Margin
=
"-1,0,0,0"
CommandButtonsVisibility
=
"Add, Edit, Navigation, Commit, Cancel"
/>
Would it be possible for you to send us a sample project that reproduces it, so that we would be able to debug it on our side?
Regards,Ivan Ivanov
Telerik
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>