Q3 and Row ContextMenu

5 posts, 0 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 04 Nov 2009 Link to this post

    I think I found a small bug in the gridview refresh mechanism.

    I have on my grid a context menu attached to each row.

    If I open it on a random row, and then decide to choose another row and open its context menu, the first row remains selected and the first context menu remains open.

    To remove the context menu, you need to choose one of its options, or right click on another row to select it, and then use the left click to open its own context menu.

    It is kind of annoying.

    I hope this behavious will soon be checked.

    Regards

    Ludovic
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Nov 2009 Link to this post

    Hi Subileau Pascal,

    Please accept our apologies for the late response. Unfortunately we are not able to reproduce the problem mentioned by you. Are you getting the issue when using the latest Q3 2009 release. If so we will greatly appreciate you sending us a small app with the problem included in it.

    All the best,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Deepak Subhedar
    Deepak Subhedar avatar
    10 posts
    Member since:
    Sep 2009

    Posted 29 Nov 2009 Link to this post

    Hi Telerik Support Team,

    I am also experiencing similar issue. This was working ok prior to Q3 release.

    attached is sample of my code.

     

    void radGridView_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)

     

    {

     

    if (!(e.Row is GridViewHeaderRow) && !(e.Row is GridViewNewRow))

     

    {

     

    RadContextMenu rowContextMenu = new RadContextMenu(); // create menu

     

     

     

    StyleManager.SetTheme(rowContextMenu, StyleManager.GetTheme(radGridView)); // set menu Theme

     

     

    // create menu items

     

    rowContextMenu.Items.Add(

    new RadMenuItem() { Header = LiteralText.GetNewMessage, Name="NewMessage"});

     

     

    // If no messages - hide View and Delete options

     

     

    if (!MessagePaneIsEmpty)

     

    {

    rowContextMenu.Items.Add(

    new RadMenuItem() { Header = LiteralText.GetViewMessage, Name = "ViewMessage" });

     

    rowContextMenu.Items.Add(

    new RadMenuItem() { Header = LiteralText.GetDeleteMessage, Name = "DeleteMessage" });

     

    }

     

    // add menu events

     

    rowContextMenu.AddHandler(

    RadMenuItem.ClickEvent, new RoutedEventHandler(OnMenuItemClick));

     

    rowContextMenu.Opened +=

    new RoutedEventHandler(rowContextMenu_Opened);

     

     

     

    // attach menu

     

     

     

    RadContextMenu.SetContextMenu(e.Row, rowContextMenu);

     

     

    }

    }

     

     

  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 02 Dec 2009 Link to this post

    Hello Deepak Subhedar,

    Sorry for the inconvenience caused. Can you confirm that the issue is appearing when using the assemblies from the latest internal build(2009.3.1127).

    Greetings,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Deepak Subhedar
    Deepak Subhedar avatar
    10 posts
    Member since:
    Sep 2009

    Posted 02 Dec 2009 Link to this post

    Issue is fixed in internal build. But I am scared to use your controls as something which was working was broken in official build.
    Which means I have to retest all of my application and can never come out of this loop.

    Deepak
Back to Top
DevCraft banner