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

RadMenu Styling across entire page

3 Answers 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 15 Feb 2011, 08:32 AM
I am using a RadMenu at the top of my Master Page and all works fine, however, I want to have a section that has no text and spans to the end of the page kind of like the ibm.com website.  If you notice on the IBM.com website, first there are a few drop down menu buttons and as you go further to the right, there is a blank space that spans pretty wide until the IBM Sign In/Register text menu.  How do I do that with a RadMenu so that it spans across the entire page?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Feb 2011, 10:14 AM
Hello Brett,

You can achieve the same appearance with RadMenu by setting the width to 100% and having RadMenuItem with desired control(Using ItemTemplate), and then set proper styles for it.

Here is a sample aspx.
<telerik:RadMenu ID="RadMenu1" runat="server"  Flow="Horizontal" EnableRoundedCorners="true"
            OnClientItemClosed="OnClientItemClosed" Width="100%">
    <Items>
       <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem1">
       </telerik:RadMenuItem>
       <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem2">
       </telerik:RadMenuItem>
       <telerik:RadMenuItem>
         <ItemTemplate>
          <div style="float:right;">
          <asp:LinkButton ID="LinkButton1" runat="server">SignIn</asp:LinkButton>
          </div>
         </ItemTemplate>
      </telerik:RadMenuItem>
     </Items>
</telerik:RadMenu>

Thanks,
Shinu.
0
Ak
Top achievements
Rank 2
answered on 16 Feb 2011, 01:02 AM
Shinu,

Can you point me to where I can find a sample solution project showing this feature so I can see the whole picture.

THanks
0
Kate
Telerik team
answered on 16 Feb 2011, 03:23 PM
Hello Brett,

You can define the following class:
<style type="text/css">
       div.RadMenu .rightItem
       {
           float: right;
       }
   </style>
 
and apply it to a simple menu like this:
<telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="True" OnClientItemClosed="OnClientItemClosed"
           Width="100%">
           <Items>
               <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem1">
               </telerik:RadMenuItem>
               <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Root RadMenuItem2">
               </telerik:RadMenuItem>
               <telerik:RadMenuItem ViewStateMode="Disabled" OuterCssClass="rightItem">
                   <ItemTemplate>
                      <asp:LinkButton ID="LinkButton1" runat="server">SignIn</asp:LinkButton>
                        </ItemTemplate>
               </telerik:RadMenuItem>
           </Items>
       </telerik:RadMenu>

All the best,
Kate
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Brett
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ak
Top achievements
Rank 2
Kate
Telerik team
Share this question
or