We have a text element on the left hand side, and a button on the right hand side of the treeview row. We want to use a context menu which only gets activated when the blue image button is clicked. What actually happens is the context menu is activated when we click anywhere on the treeview row (see picture attached).
We are using this nodetemplate in the RadTreeView with a context menu.
<
NodeTemplate
>
<
div
style
=
"width:100%;height:22px;"
>
<
span
style
=
"float:left;font-family:Arial;font-weight:bold;font-size:13px;"
>
<%# DataBinder.Eval(Container, "Text") %>
</
span
>
<
img
class
=
"treeGear"
src
=
"../img/gearsbluebtn.png"
alt
=
"Options"
width
=
"38px"
height
=
"22px"
/>
</
div
>
</
NodeTemplate
>
How can we limit the context menu to only activate when the blue button is clicked?