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

ToolBar width not working in User Controls

3 Answers 80 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Pei Chen
Top achievements
Rank 1
Pei Chen asked on 14 Jan 2010, 09:53 PM
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%">     
        <Items>      
             <telerik:RadToolBarButton runat="server" ImageUrl="~/Style/Images/alarm1.gif"  CommandName="cmd1" /> 
             <telerik:RadToolBarButton runat="server" ImageUrl="~/Style/Images/alarm2.gif"  CommandName="cmd2"/>   
        </Items>     
    </telerik:RadToolBar> 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 18 Jan 2010, 02:37 PM
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,
Yana
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.
0
Jason
Top achievements
Rank 1
answered on 18 Nov 2010, 11:12 PM
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 rendered...got any answers?
0
Yana
Telerik team
answered on 25 Nov 2010, 02:07 PM
Hi Christopher,

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

Kind regards,
Yana
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.
Tags
ToolBar
Asked by
Pei Chen
Top achievements
Rank 1
Answers by
Yana
Telerik team
Jason
Top achievements
Rank 1
Share this question
or