ToolBar width not working in User Controls

4 posts, 0 answers
  1. Pei Chen
    Pei Chen avatar
    12 posts
    Member since:
    Jan 2010

    Posted 14 Jan 2010 Link to this post

    Hi I have a toolbar work just fine in an aspx page.  I want to do the same on a user control.  So I copied and pasted my radtoolbar to a user control but for some reason, the bar only stretches up to the last button.  I tried style="width:100%" and Width="100%", none worked.  I tried to read the Telerik CSS article but not very helpful in my situation.  Can someone please tell me why it's doing that? 

    My line of code in user control:
    <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Vista" style="display:block; float:none" Width="100%">     
                 <telerik:RadToolBarButton runat="server" ImageUrl="~/Style/Images/alarm1.gif"  CommandName="cmd1" /> 
                 <telerik:RadToolBarButton runat="server" ImageUrl="~/Style/Images/alarm2.gif"  CommandName="cmd2"/>   
  2. Yana
    Yana avatar
    4995 posts

    Posted 18 Jan 2010 Link to this post

    Hi Pei Chen,

    The provided code is not enough for us to reproduce the issue. Please send us a live url where we could observe this problem. Thanks

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jason
    Jason avatar
    9 posts
    Member since:
    Oct 2010

    Posted 18 Nov 2010 Link to this post

    Seems to be a lot of people having trouble getting a RadToolBar Width attribute to work.  It seem to work fine when the RadToolBar is not under a RadSplitBar, but when it is the RadToolBar Width in a CSSClass or Width the RadToolBar item doesn't seem to effect how the RadToolBar is any answers?
  4. Yana
    Yana avatar
    4995 posts

    Posted 25 Nov 2010 Link to this post

    Hi Christopher,

    Can you send your page so we to be able to reproduce the issue? Thanks in advance

    Kind regards,
    the Telerik team
    Browse the vast support resources we have to jumpstart 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.
Back to Top