RadToolBarDropDown Text

2 posts, 1 answers
  1. Robert
    Robert  avatar
    68 posts
    Member since:
    Feb 2009

    Posted 06 Dec 2011 Link to this post

    I'm writing to ask how best to apply text to the RadToolBarDropDown programmatically, in C#;

    Thanks in advance for any insight;  Best regards - Rob

    <telerik:RadToolBar ID="RadToolBar3" runat="server" Skin="Black"  
                       BorderWidth="0px" onbuttonclick="RadToolBar3_ButtonClick">
                         <telerik:RadToolBarDropDown runat="server" Font-Size="Medium">
                                 <telerik:RadToolBarButton runat="server" Text="Sign Out" Font-Size="Medium" CheckOnClick="true" CommandName="SignOut">
                                 <telerik:RadToolBarButton runat="server" Text="Contact Us" Font-Size="Medium" CheckOnClick="true" CommandName="ContactUs">
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Dec 2011 Link to this post

    Hello Robert,

    Try the following code snippet.
    protected void Page_Load(object sender, EventArgs e)
      RadToolBarDropDown dropDown = new RadToolBarDropDown();
      dropDown.Text = "DropDown1";
      dropDown.Buttons.Add(new RadToolBarButton("Text"));

  3. DevCraft R3 2016 release webinar banner
Back to Top