Dynamic Context Menu With AJAX

Thread is closed for posting
4 posts, 0 answers
  1. 5EBF5A6A-BC81-4048-A21D-DEF5EAD982C6
    5EBF5A6A-BC81-4048-A21D-DEF5EAD982C6 avatar
    19 posts
    Member since:
    Jul 2005

    Posted 20 Nov 2006 Link to this post

    Requirements

    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

    C#

    browser support

    all browsers supported by r.a.d.controls


     
    PROJECT DESCRIPTION
    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. DD23CCA3-C043-41A5-BF06-9B19F4CFF491
    DD23CCA3-C043-41A5-BF06-9B19F4CFF491 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?

    Thanks,

    Niki
  3. CEE486A7-FA5A-432A-A744-07A4F262C400
    CEE486A7-FA5A-432A-A744-07A4F262C400 avatar
    1052 posts
    Member since:
    Jan 2017

    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,
    Helen
    the telerik team
  4. 9F954A51-2171-4AFB-9730-1247FA9141CC
    9F954A51-2171-4AFB-9730-1247FA9141CC 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.