Radcontextmenu selected item image

2 posts, 0 answers
  1. Gopakumar
    Gopakumar avatar
    6 posts
    Member since:
    Jun 2012

    Posted 20 Jun 2012 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Jun 2012 Link to this post

    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.
Back to Top