
Julien LEBLANC
Top achievements
Rank 1
Julien LEBLANC
asked on 02 Jul 2010, 01:34 PM
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
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
7 Answers, 1 is accepted
0
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:
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
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
0

Glenn
Top achievements
Rank 1
answered on 15 Jul 2010, 03:01 PM
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
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
0
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
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
0
0
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
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
0

Glenn
Top achievements
Rank 1
answered on 19 Jul 2010, 12:57 PM
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
0
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
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