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

How to Align Centre the Toolbar Contents

4 Answers 183 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 26 Jul 2010, 11:05 AM
Good Day All

i have a Toolbar button that has a textbox and image buttons, now my problem is that the controls inside the toolbar are not aligned correctly. i would like to have them centered. I have attached the image on how they look and the markup to the definition is

<telerik:RadToolBar ID="RadToolBar1" Runat="server" Width="100%" Height="100%" Skin="Forest">
              <Items>
              <telerik:RadToolBarButton Width="90%" Text="Button1" runat="server">
              <ItemTemplate>
                <asp:ImageButton ID="btnoweb" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture3.png" />
                 
                <asp:ImageButton ID="btnCalender" Height="50" Width="50" runat="server" OnClick="btnCalender_Click" ImageUrl="~/images/CalenderView.png" />
                
                <asp:ImageButton ID="btnAttach" Height="50" Width="50" runat="server" ImageUrl="~/images/Attach.png"/>
                
               <asp:Menu ID="mnuMenu" Height="50" Width="50" runat="server" ></asp:Menu>
               
               <asp:ImageButton ID="imgpose" Height="50" Width="50" runat="server" ImageUrl="~/images/Picture5.png"/>
                <asp:TextBox ID="txtsearch"  Width="650px"  Height="40px" runat="server" ></asp:TextBox>
               <asp:ImageButton ID="ImageButton1" Height="50" Width="50" runat="server" ImageUrl="~/images/Cancel.png" />
              </ItemTemplate>
              </telerik:RadToolBarButton>
              </Items>
             </telerik:RadToolBar>

Thanks

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Jul 2010, 09:37 AM
Hello Vuyiswa,

The code you sent is not sufficient to replicate the problem. Attached is a screenshot of what we get in a local test. Please, send us a more complete code sample along with the toolbar images you use.


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 29 Jul 2010, 11:33 AM
Good Day Admin
Due to the size of Telerik DLL, in the bin Directory i removed the telerik dll and it was a 2010 version. Please find the Link below. in the same project ,i am trying again to do a hierarchy grid that i saw from the demo, i am using xml as my data source and i am converting it to a dataset.

Link to My Project


Thanks
0
Accepted
Yana
Telerik team
answered on 04 Aug 2010, 01:12 PM
Hello Vuyiswa,

I've modified your styles and also set  static Height for the toolbar as the buttons cannot be vertically aligned in a different way. Please download the attached file and give it a try.

Greetings,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vuyiswa
Top achievements
Rank 2
answered on 07 Aug 2010, 08:10 AM
Thank you very much that resolved my problem
Tags
ToolBar
Asked by
Vuyiswa
Top achievements
Rank 2
Answers by
Peter
Telerik team
Vuyiswa
Top achievements
Rank 2
Yana
Telerik team
Share this question
or