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

Populating grid on right click on rad tree node

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
abhay
Top achievements
Rank 1
abhay asked on 05 Jan 2012, 08:08 AM
Hello,

Can I populate a radgrid on right clicking (context menu) on a tree node so that the grid gets populated using ajax and the context menu also shows?
I tried it but the after the grid gets populated, the context menu disappears.

function OnClientContextMenuShowing(sender, args) {
  var treeNode = args.get_node();
   treeNode.set_selected(true);
/*
//Here I tried to call the ajax function for populating the grid
*/
  if (args.get_menu() != null) {
     setMenuItemsState(args.get_menu().get_items(), treeNode);
  }
}

Abhay

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 09 Jan 2012, 10:36 AM
Hi Abhay,

I've prepared a sample page demonstrating the desired functionality. Please find it attached.

Hope this would help.

Regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
abhay
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or