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

Radcontextmenu selected item image

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gopakumar
Top achievements
Rank 1
Gopakumar asked on 20 Jun 2012, 05:47 AM
hy,

I have a radcombobox and i am showing context menu on this control.I want highlight or show an image on the selected item of radcontextmenu.

I have tried like this
function RadContextMenu1_ItemClicked(sender, args) {
      args._item.set_selectedImageUrl("~/Images/Selected.png")
}

Help me

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Jun 2012, 06:26 AM
Hi Gopakumar,

Try the following JavaScript to achieve your scenario.

JS:
<script type="text/javascript">
    function OnClientItemClicked(sender, args) {
        args.get_item().set_selectedImageUrl("../Images/button_edit_grey.gif");
    }
</script>

Thanks,
Princy.
Tags
General Discussions
Asked by
Gopakumar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or