This question is locked. New answers and comments are not allowed.
using Q3 2010 release of your controls, I have a radtreeview context menu. I would like to bind it to a command property on a viewmodel and pass the currently selected item as a commandproperty.
This does not work as shown, meaning the command is called, but the value of the property is always null. i think its because at this level the binding doesnt know anything about the treeview or cant find it in the visual tree? What would be the best way to have a context menu pass the selecteditem to the command? I have also tried binding the SelectedItem at the treeview level to my viewmodel, but that didnt seem to work either, although from what I have read, the Q3 2010 release should support that?
ideas?
Kirk
<telerik1:RadContextMenu.ContextMenu> <telerik1:RadContextMenu x:Name="ContextMenu" > <telerik1:RadMenuItem Header="Properties" Command="{Binding ContextMenuCommand}" CommandParameter="{Binding ElementName=treeView, Path=SelectedItem}" /> </telerik1:RadContextMenu> </telerik1:RadContextMenu.ContextMenu> This does not work as shown, meaning the command is called, but the value of the property is always null. i think its because at this level the binding doesnt know anything about the treeview or cant find it in the visual tree? What would be the best way to have a context menu pass the selecteditem to the command? I have also tried binding the SelectedItem at the treeview level to my viewmodel, but that didnt seem to work either, although from what I have read, the Q3 2010 release should support that?
ideas?
Kirk