Dynamic Context Menu With AJAX

4 posts, 0 answers
  1. Vladimir Milev
    Vladimir Milev avatar
    19 posts
    Member since:
    Jul 2005

    Posted 20 Nov 2006 Link to this post


    r.a.d.controls version

    r.a.d.controls Q3

    .NET version

    .NET 1.1 or .NET 2.0     

    Visual Studio version

    VS2003 or VS2005

    programming language


    browser support

    all browsers supported by r.a.d.controls

    This example demonstrates how to capture the OnContextMenu event and apply a dynamically generated r.a.d.menu on the fly using r.a.d.ajax.
  2. nikih
    nikih avatar
    1 posts
    Member since:
    Oct 2006

    Posted 24 Nov 2006 Link to this post

    Hi Support,

    This was incredibly useful. I adapted this code to present a dynamic context menu for every row in a radGrid. Whist doing so I came across some strange behavior, which I suspect may be a bug in the Rad js libraries.

    Everything works perfectly in IE, and at first everything seemed to work fine in Firefox too. But when I built a menu on the fly that contained sub menus, everything turned a bit strange. The first right click over the grid produced a a malformed menu that seemed horizontally squashed (but with all of the correct elements), and the second right click produced only JavaScript errors. Very strange. I've ended up having to disable the menu in FireFox. Any ideas what could be causing this?


  3. Helen
    Helen avatar
    1052 posts

    Posted 27 Nov 2006 Link to this post

    Hi Niki,

    Thanks for sharing your findings with us.

    We tried to reproduce the problem, but to no avail. Could you please open a new support thread and attach a small and running project exhibiting the matter? We will test it locally, try to locate the source of the problem and update our project in the code library if necessary.

    Thanks for your time and cooperation.

    Sincerely yours,
    the telerik team
  4. sk270
    sk270 avatar
    58 posts
    Member since:
    Sep 2006

    Posted 03 Feb 2007 Link to this post

    I am also trying to attach a single level contextual menu on a radgrid rows such that the menu content changes based on the row where the mouse is, and the menu appears to the right of the mouseover row.  Any suggestions on how to do it!
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.