This question is locked. New answers and comments are not allowed.
Hello,
I would like to know if it's possible for a calculated column to access to the parent's context... I need to calulate over a parameter that's inside the main viewmodel..... I've tried to do
but I got an exception
{System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Windows.Data.BindingBase.CheckCanReceiveMarkupExtension(IProvideValueTarget provideValueTarget, DependencyObject& targetDependencyObject, DependencyProperty& targetDependencyProperty)
at System.Windows.Data.BindingBase.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.XamlManagedRuntimeRPInvokes.TryApplyMarkupExtensionValue(Object target, XamlPropertyToken propertyToken, Object& value)
at
How can I do that?
Thanks
I would like to know if it's possible for a calculated column to access to the parent's context... I need to calulate over a parameter that's inside the main viewmodel..... I've tried to do
<telerik:GridViewDataColumn Header="Calculated Max" DataMemberBinding="{Binding Converter={StaticResource calculatedColumnConverter},ConverterParameter={Binding RelativeSource={RelativeSource AncestorType= Grid}}}"></telerik:GridViewDataColumn>but I got an exception
{System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Windows.Data.BindingBase.CheckCanReceiveMarkupExtension(IProvideValueTarget provideValueTarget, DependencyObject& targetDependencyObject, DependencyProperty& targetDependencyProperty)
at System.Windows.Data.BindingBase.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.XamlManagedRuntimeRPInvokes.TryApplyMarkupExtensionValue(Object target, XamlPropertyToken propertyToken, Object& value)
at
How can I do that?
Thanks