ScheduleView Data in CommandParameter from RadContexMenu

2 posts, 0 answers
  1. Eloy
    Eloy avatar
    3 posts
    Member since:
    Jul 2012

    Posted 23 Aug 2012 Link to this post

    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>
  2. Eloy
    Eloy avatar
    3 posts
    Member since:
    Jul 2012

    Posted 25 Aug 2012 Link to this post

    Solved:

    <telerik:RadContextMenu>
    <telerik:RadMenuItem Header="Open..." Command="{Binding MyCommand}" CommandParameter="{Binding ElementName=RadScheduleView1,Path=SelectedAppointment}"/> 
    </telerik:RadContextMenu>
  3. DevCraft banner
Back to Top