Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception "no target found for method" on click of row grid view

See original GitHub issue

Hi All,

My WPF application got an exception “no target found for method EditRow” My code: <DataTemplate x:Key="a"> <Grid> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <Button Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Margin="0 0 2 0" Visibility="Hidden" x:Name ="editTemplate" caliburn:Bind.Model="{Binding RelativeSource={ RelativeSource FindAncestor, AncestorType=telerik:RadGridView}, Path=DataContext, Mode=TwoWay}" caliburn:Message.Attach="[Event Click] = [Action EditRow($executionContext)];" caliburn:Action.TargetWithoutContext="{Binding DataContext, ElementName=editTemplate}" > <Image Source="~\Edit.png" /> </Button> </StackPanel> </Grid> </DataTemplate>

I tried to fix as But it does not work.


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

NhatDuy1407commented, Oct 14, 2016

Thanks for your help. Let me prepare a sample of problem.

nigel-sampsoncommented, Feb 10, 2017

Closing out as not extra information received.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"No target found for method" thrown by Caliburn Message. ...
Your problem lies in that you are trying to bind the target to an element which doesn't exist in the same visual tree...
Read more >
Problem displaying a drop down list in a field on a grid
Message: Exception has been thrown by the target of an invocation. Inner Exception Message: Object reference not set to an instance of an...
Read more >
How to get selected row and its DataItem
hi, I have a kendo UI grid in which I am using an entity framework data source to bind the data. I have...
Read more >
GridView Class (System.Web.UI.WebControls)
Displays the values of a data source in a table where each column represents a field and each row represents a record. The...
Read more >
GridView | Android Developers
android:soundEffectsEnabled, Boolean that controls whether a view should have sound effects enabled for events such as clicking and touching.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found