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

contextmenu

3 Answers 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
geetha priya
Top achievements
Rank 1
geetha priya asked on 27 Jan 2011, 08:14 AM
Hi
i am using context menu in my radtreeview.i can able to get the menu items text in client side. but i want to get the sub menu items text. 
how can i get the sub context menu items text in client side.

regards,
geetha.

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 27 Jan 2011, 09:25 AM
Hi geetha priya,

You can find the sub menu items text by using similar code to this:

function OnClientContextMenuItemClicked(sender, eventArgs) {
            var item = eventArgs.get_menuItem();
  
            var child = item.get_items().getItem(0).get_text();
            alert(child);
        }

Please let me know if you have further questions.

Greetings,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
geetha priya
Top achievements
Rank 1
answered on 27 Jan 2011, 11:35 AM
Hi
thanks for ur reply. 
from this i can able to get the sub context menu name, but i want to hide the subcontext menu in one node and want to show it for another node.
how can i do this?

regards,
geetha.
0
Veronica
Telerik team
answered on 31 Jan 2011, 05:01 PM
Hello geetha priya,

Could you please be more specific on the requirement "i want to hide the subcontext menu in one node and want to show it for another node"?

All the best,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
geetha priya
Top achievements
Rank 1
Answers by
Veronica
Telerik team
geetha priya
Top achievements
Rank 1
Share this question
or