Right clic on item B without unselect item A

8 posts, 0 answers
  1. Julien LEBLANC
    Julien LEBLANC avatar
    1 posts
    Member since:
    Mar 2010

    Posted 02 Jul 2010 Link to this post

    Hello

    I'm using Telerik Controls for Silverlight 3.

    I implemented TreeView, and Context Menu.
    Problem is :
    - I select Item A
    - I right-click on item B
    - Context Menu for Item B is display
    - But item B is also selected, instead of item A like I'd like to ...

    Any idea to keep item A selected ?

    Thanks
    Julien
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 07 Jul 2010 Link to this post

    Hi Julien,

    Thank you for contacting us. If you are using code similar to the Add/Remove/Disable example, you will have to modify the ContextMenuOpened event handler and comment the lines that select the TreeViewItem that is right-clicked:

    private void ContextMenuOpened(object sender, RoutedEventArgs e)
    {
        RadTreeViewItem treeViewItem = (sender as RadContextMenu).GetClickedElement<RadTreeViewItem>();
     
        if (treeViewItem == null)
        {
            (sender as RadContextMenu).IsOpen = false;
            return;
        }
     
        // if (!treeViewItem.IsSelected)
        // {
        //  RadTreeView1.SelectedItems.Clear();
        //  RadTreeView1.SelectedItems.Add(treeViewItem.Item);
        // }
    }

    I've attached a modified version of the Add/Remove/Disable example that shows one possible solution to your scenario. Have a look at it and let me know if it helps.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    Best wishes,
    Kiril Stanoev
    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. Glenn
    Glenn avatar
    12 posts
    Member since:
    Apr 2010

    Posted 15 Jul 2010 Link to this post

    There seems to be a bug regarding the context menu and the TreeView that I am experiencing in my code and also can be replicated in the Add/Remove/Disable demo.

    If you left-click on the Drafts node to select the node and then right-click on the Folder node, the Junk E-mails node is selected.  I would expect the Folder node to be selected.

    What seems to be happening is when ever a node that is lower that the selected node is right-clicked, the node immediately preceding to the right-clicked node is selected regardless of the level.

    Is there any work-around for this issue?

    Thanks,
    Glenn

  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 16 Jul 2010 Link to this post

    Hello Glenn,

    I couldn't reproduce the issue with the Add/Remove/Disable example in the QSF that you described. Can you please take a look at this video and let me know if I am missing something?

    Thank you in advance.

    Best wishes,
    Tina Stancheva
    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
  5. Glenn
    Glenn avatar
    12 posts
    Member since:
    Apr 2010

    Posted 16 Jul 2010 Link to this post

    Hi Tina:

    My coworker does not have the issue either.  However, as you can see in this video, I am having the issue.

    I am running Windows 7, IE 8.0.7600.16385, and Silverlight 4.0.50524.0

    Thanks,
    Glenn
  6. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 16 Jul 2010 Link to this post

    Hello Glenn,

    This issue is really strange. I tested the Add/Remove/Disable example on a machine with the same configuration as yours and everything worked as expected. This might be a shot in the dark but have you, by any chance, zoomed your browser while you were recording the video? If you manage to isolate the issue, contact us as soon as possible.

    All the best,
    Kiril Stanoev
    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
  7. Glenn
    Glenn avatar
    12 posts
    Member since:
    Apr 2010

    Posted 19 Jul 2010 Link to this post

    It seems I did have my browser zoomed to 105%.  When the browser is zoomed, the TreeView gets confused.  Setting the compatibility mode to “EI 8 Compatibility View” seemed to resolved it when the browser is zoomed to 105%.

     


    Curiously, I was only able to replicate the issue when the zoom was set to 105%.  All other zooms didn’t have any affect.

    Thanks,
    Glenn

  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Jul 2010 Link to this post

    Hi Glenn,

    Thank you for contacting us.

    We have added this bug in our Public Issue Tracking System (PITS). You can view it here. You can vote for it, track its status and see when it is going to be implemented.

    If you have any other concerns about our controls please feel free to contact us again.

    Sincerely yours,
    Konstantina
    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
Back to Top