RadContextMenu

3 posts, 1 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 12 Mar 2010 Link to this post

    Hi,

    I'm trying a code sample found in the demo here I think and it doesn't do what I tought it would do.

    private void _rcmJobs_Opened(object sender, RoutedEventArgs e)  
    {  
        GridViewRow row = ((Telerik.Windows.RadRoutedEventArgs)e).OriginalSource as GridViewRow;  
     
        if (row != null)  
            row.IsSelected = row.IsCurrent = true;  
    }  
     

    When I right click on a row which isn't the selected one, it doesn't select the row.
    How do I make it so when I right click to open the ContextMenu it is also selecting the line I right clicked on ?
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Mar 2010 Link to this post

    Hello ,

    The same approach can be on this demo and everything is working fine.

    Greetings,
    Vlad
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 15 Mar 2010 Link to this post

    Awesome.  It works like a charm.  Thank you
Back to Top