动态创建手风琴控制菜单 [英] Dynamically creating Accordion control menu
本文介绍了动态创建手风琴控制菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我已经使用手风琴控件静态创建了一个菜单.但是现在我想在运行时动态创建它们.我可以使用:
创建菜单
Hi All,
I have statically created a menu using accordion control.But now i want to create them dynamically at run time.I am able create the menu using :
AjaxControlToolkit.AccordionPane ACP = new AjaxControlToolkit.AccordionPane();
ACP.HeaderContainer.GroupingText = "Dynamic";
AccordionCtrl.Panes.Add(ACP);
但我无法填写相同的子菜单.
请有人帮我做这个.
预先感谢.
but i am unable to fill sub menus for the same.
Someone plz help me do this.
Thanks in advance.
推荐答案
对不起,
我解决了问题.
我无法弄清楚如何向内容添加控件.
ACP.Content.controls.Add();
是我要寻找的东西.
感谢提示及时答复所有人
问候,
Shivprasad
sorry guys,
i got the problem solved.
I was not able to figure out how to get add controls to the content.
ACP.Content.controls.Add();
Was what i was searching for.
Thanx for the prompt replies everyone
Regards,
Shivprasad
这篇关于动态创建手风琴控制菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文