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

[Solved] ItemTemplate declaratively

1 Answer 109 Views
Menu
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 19 May 2009, 01:51 PM
I have a menu that makes extensive use of itemtemplates, I need to move this menu to code behind and I cannot for the life of me figure out how to declare ItemTemplates.  My .aspx started out like this:

<telerik:RadMenu ID="RadMenu2" runat="server" Skin="Web20" CssClass="qsfexMenu" Flow="Vertical"  Width="300px">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            <Items>
                <telerik:RadMenuItem Text="Advanced Strategies in HR Management">
                    <Items>
                        <telerik:RadMenuItem CssClass="CourseSection">
                            <ItemTemplate>
                                <div class="qsfexCustomMenuSection">
                                    <h3>Overview</h3>
                                    <p>
                                        The Advanced Strategies in Human Resource Management Program is particularly well
                                        suited for anyone in human resources, human resource management, office administration,
                                        or anyone who is involved in the human resource process and function. ....................

I was looking at this help item but it's not making sense to me, any other examples I can look at?

ms-help://telerik.aspnetajax.radcontrols.2009.Q1/telerik.aspnetajax.radmenu.2009.Q1/templates-runtime.html



1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 May 2009, 07:23 AM
Hi,

I guess following links to online documenation will be helpful.
Adding Templates at run-time
Accessing Controls Inside Templates

-Princy.
Tags
Menu
Asked by
david
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or