Hi,
Here is the situation:
I have a master page with telerik menu control (ID=testMenu)with 2 top level menu items "A", "B" . In the page load event of this page, I have added 3 sub menus -a1,a2,a3 to "A" [ testMenu.Items[0].Items.Add(new RadMenuItem("a1")); testMenu.Items[0].Items.Add(new RadMenuItem("a4")); testMenu.Items[0].Items.Add(new RadMenuItem("a3"));]
. No issues till now... now trying to get the total sub menus under "A" from content page load event using [ (RadMenu )Master.FindControl("testMenu") ).Items[0].Items.Count] , returns '0' always .. Can you tell me why dynamically added menu is reflected inside menu control object.
Regards
Madhu
Here is the situation:
I have a master page with telerik menu control (ID=testMenu)with 2 top level menu items "A", "B" . In the page load event of this page, I have added 3 sub menus -a1,a2,a3 to "A" [ testMenu.Items[0].Items.Add(new RadMenuItem("a1")); testMenu.Items[0].Items.Add(new RadMenuItem("a4")); testMenu.Items[0].Items.Add(new RadMenuItem("a3"));]
. No issues till now... now trying to get the total sub menus under "A" from content page load event using [ (RadMenu )Master.FindControl("testMenu") ).Items[0].Items.Count] , returns '0' always .. Can you tell me why dynamically added menu is reflected inside menu control object.
Regards
Madhu