RadMenu looking like a ContextMenu but bound to a control

3 posts, 1 answers
  1. Michael Arocho
    Michael  Arocho avatar
    29 posts
    Member since:
    Mar 2009

    Posted 19 Aug 2009 Link to this post

    Hi,

    I have an ImageButton where the functionality of left clicking on the button causes a ContextMenu to appear below it.  One of the issues that is happening is that if i tab to the imagebutton and hit enter the context menu opens up wherever the mouse is.

    Is there anyway to provide a target control for the RadMenu when in context mode so that it will always open relative to that control?
  2. Answer
    Yana
    Admin
    Yana avatar
    5037 posts

    Posted 24 Aug 2009 Link to this post

    Hello Michael,

    Actually this is expected behavior of RadContextMenu. I've attached a simple page which demonstrates how to show the context menu in a particular place using its showAt() client-side method.  Please download the attached file and give it a try.

    All the best,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Michael Arocho
    Michael  Arocho avatar
    29 posts
    Member since:
    Mar 2009

    Posted 24 Aug 2009 Link to this post

    Hi, that code worked great.  I could not get the scripts from $telerik to work, but was able to work around that.

    Thanks
Back to Top