This is a migrated thread and some comments may be shown as answers.

ScheduleView Data in CommandParameter from RadContexMenu

1 Answer 71 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eloy
Top achievements
Rank 1
Eloy asked on 23 Aug 2012, 11:13 AM
Hello,

I have a RadContextMenu inside a RadScheduleView. I want to pass as a CommandParamenter the selected Appointment Subject. I have tried many things and I always get a null parameter. Any help would be really appreciated.

<telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Open..." Command="{Binding MyCommand}" CommandParameter="?"/>
                    
             </telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

1 Answer, 1 is accepted

Sort by
0
Eloy
Top achievements
Rank 1
answered on 25 Aug 2012, 09:28 PM
Solved:

<telerik:RadContextMenu>
<telerik:RadMenuItem Header="Open..." Command="{Binding MyCommand}" CommandParameter="{Binding ElementName=RadScheduleView1,Path=SelectedAppointment}"/> 
</telerik:RadContextMenu>
Tags
ScheduleView
Asked by
Eloy
Top achievements
Rank 1
Answers by
Eloy
Top achievements
Rank 1
Share this question
or