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

TargetObject object binding issue for RadmenuItem

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sathisha
Top achievements
Rank 1
Sathisha asked on 19 Sep 2013, 12:50 PM

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>
.......
.......

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 24 Sep 2013, 07:45 AM
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 >>
Tags
General Discussions
Asked by
Sathisha
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or