Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1360
Programmatically Control WebDataMenu
posted

I have a requirement to control a WebDataMenu by forcing a particular item to display and thereby showing its child menu items as though the user had navigated to that node via mouse clicks, I'm not too bothered whether it is done via CSOM in JavaScript or server-side code (the control is using AJAX so screen refreshes are hidden). The node in question could be at any level in the menu. The behaviour I seek mimics that of the [.Expanded] property for a node of a WebDataTree.

I have tried the following on the server:

WebDataMenu wdm = (WebDataMenu)Master.FindControl("WebDataMenu1");
wdm.Items[0].Items[0].Selected =true;     // Try to activate the first child of the first menu item
wdm.Items[0].Items[0].Visible = true;

Nothing happens. Any ideas gratefully received.

Paul

Infragistics Ultimate 2012.1  ASP.NET CLR 4  VS 2010