TargetObject object binding issue for RadmenuItem

2 posts, 0 answers
  1. Sathisha
    Sathisha avatar
    1 posts
    Member since:
    Sep 2013

    Posted 19 Sep 2013 Link to this post


    When I add below  code in RadMenuItem and Trigger the print action , Mygrid is not binded and  TargetObject is null in invoke method.
    It works fine for other system windows controls . Please help me to fix this issue.


     <telerik:RadMenuItem Header="Print">
    i:EventTrigger EventName="Click">
                            <actions:PrintAction DocumentName="DocName" TargetName="MyGrid"  
                                   TargetObject="{ Binding ElementName=MyGrid }"
                                       />
                    </i:EventTrigger>
    .......
    .......
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 24 Sep 2013 Link to this post

    Hi Sathisha,

    May I ask you for more information about this PrintAction? If you could provide a sample project, this will be a great help for us. Also I suggest you to use Command property of RadMenuItem - this way you can control which command to be executed when the item is clicked.

    I'm looking forward to hearing from you. 

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top