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

Toolbarbutton problem

4 Answers 125 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Het
Top achievements
Rank 1
Het asked on 04 Aug 2008, 04:31 PM
Support,

How can I get control over the size of the Toolbarbutton ? Below code is not working it seems. Whatever font size I give, it is not changing.

<telerik:RadToolBar ID="RadToolBar1" Runat="server" Skin="Office2007"

Width="100px" Font-Size="Smaller">

<

CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

<Items>

<telerik:RadToolBarSplitButton runat="server"

Text="SplitButton 0" ImagePosition="Right" Width="100%">

<Buttons>

<telerik:RadToolBarButton runat="server" Text="a" >

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="abc" >

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="abcdef" >

</telerik:RadToolBarButton>

<telerik:RadToolBarButton runat="server" Text="abcdefgh" >

</telerik:RadToolBarButton>

</Buttons>

</telerik:RadToolBarSplitButton>

</Items>

</telerik:RadToolBar>


Also, if you see the code, space after the down arrow (one used to expand the button) is more, can we have this down-arrow at the end ?
And, Can I reduce the size of the rad toolbar button ? Which is not in the code but it is not working if I give Style="height:90%".

Thanks in advance for your help.

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 07 Aug 2008, 12:44 PM
Hi Het,

I am attaching a page that fixes the problems you describe. The font size can be controlled using the first CSS rule.

Kind regards,
Alex
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Het
Top achievements
Rank 1
answered on 08 Aug 2008, 08:43 PM
Thanks for the reply and help.

Also, on the same line, is it possible to keep the icon which appears immediately after the text to the extreme right, as for current implementation element which is displayed is of length 1 and longest element has length of around 7.

Thanks again for the code.
0
Accepted
Alex Gyoshev
Telerik team
answered on 11 Aug 2008, 02:11 PM
Hello Het,

Unfortunately, this functionality is not part of RadToolBar for ASP.NET AJAX.

Nevertheless, you can control the width of the split buttons using the following CSS declaration:
div.RadToolBar_Office2007 .rtbSplBtn .rtbSplBtnActivator 
    width82px

Sincerely yours,
Alex
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Het
Top achievements
Rank 1
answered on 11 Aug 2008, 08:50 PM
Thanks Alex for your Help on this !
Tags
ToolBar
Asked by
Het
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Het
Top achievements
Rank 1
Share this question
or