This is a migrated thread and some comments may be shown as answers.

[Solved] Context Menu Item Select

5 Answers 176 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chinna
Top achievements
Rank 1
Chinna asked on 05 May 2008, 01:29 PM
hi,
     Is there any way to make the Context menu item Select( similar to Internet Explorer --> View). I want to make the selected item marked.



Thanks,

5 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 05 May 2008, 02:30 PM
Hi Chinna,

I'm not sure if I understood your question correctly. To make a menu item appear selected, you can use the focus method of the client-side RadMenuItem object.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chinna
Top achievements
Rank 1
answered on 05 May 2008, 02:37 PM
hi Erjan,
             You didn't got my point.

I have a scenario where user will be able to choose whether a selected node is applicable for User A / User B. So i have to provide a option to mark User A / User B in the context menu.


Ex: If you take the Internet Explorer user will be given a option to select/ mark the options / add-ons in  the view menu option.


Same is the scenario i have to implement
0
Erjan Gavalji
Telerik team
answered on 05 May 2008, 03:27 PM
Hi Chinna,

You can use the ContextMenuID property of the RadTreeNode to specify if a node will use a User1-specific or User2-specific context menu. In addition, you can use the OnClientContextMenuShowing event of the RadTreeView to show/hide items depending on the node.

I hope this helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chinna
Top achievements
Rank 1
answered on 05 May 2008, 03:48 PM
hi Erjan,
               I want to show the tick mark against the selected item, how can i achieve that.

Thanks 
0
Erjan Gavalji
Telerik team
answered on 06 May 2008, 12:30 PM
Hi Chinna,

You can set a value to the ImageUrl property of the RadMenuItem, which can show a check mark.

Regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Chinna
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Chinna
Top achievements
Rank 1
Share this question
or