This question is locked. New answers and comments are not allowed.
We have a RadGridView that is bound to our main ViewModel. The RadGridView uses a RowDetailsTemplate containing numerous editable fields. One of these fields is a ComboBox which we wish to bind its ItemsSource to one of the properties on the main ViewModel (ie. the object that the grid is bound to). I have tried numerous things to reference the properties on the ViewModel from within the RowDetailsTemplate, such as:
<ComboBox DisplayMemberPath="Descr" ItemsSource="{Binding DataContext.Chairs,RelativeSource={RelativeSource TemplatedParent}}"/>
but nothing ever seems to show up in the ComboBox, despite the fact that the Chairs property on the main ViewModel has items in its list. Nothing shows up in the Visual Studio Output pane to say that the binding was not valid. I have also tried doing a binding using ElementName but had the same result.
Is it possible to bind to properties on objects outside the RowDetailsTemplate?
<ComboBox DisplayMemberPath="Descr" ItemsSource="{Binding DataContext.Chairs,RelativeSource={RelativeSource TemplatedParent}}"/>
but nothing ever seems to show up in the ComboBox, despite the fact that the Chairs property on the main ViewModel has items in its list. Nothing shows up in the Visual Studio Output pane to say that the binding was not valid. I have also tried doing a binding using ElementName but had the same result.
Is it possible to bind to properties on objects outside the RowDetailsTemplate?
