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

Adjacent toolbars

2 Answers 37 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Albert Shenker asked on 17 Nov 2008, 05:34 PM
Does anyone know how to implement adjacent toolbars? I would like to create an interface like the CommandItemTemplate example (http://demos.telerik.com/ASPNET/Prometheus/ToolBar/Examples/ApplicationScenarios/GridCommandItem/DefaultVB.aspx?product=toolbar), however, I need to place toolbuttons on both the left and right side of the grid header. In other words, I have a set of commands which are left justified, and another set which are right justified. I can probalby put something togetther using css layout, or even tables, however, I want it ot look like a single toolbar, stretching the avaialble width, rather than two distinct toolbars.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 18 Nov 2008, 09:54 AM
Hello Albert,

You can extend the width of the ToolBar according to that of the grid and then set the position of the ToolBarButton in its CssClass as shown below:
aspx:
<telerik:RadToolBar ID="RadToolBar1" Width="1000px" runat="server"
    <Items> 
     <telerik:RadToolBarButton Text="Button1"></telerik:RadToolBarButton> 
     <telerik:RadToolBarButton Text="Button2" CssClass="Button"></telerik:RadToolBarButton> 
    </Items> 
</telerik:RadToolBar> 

css:
.Button 
   {           
     position:relative;  
     left:500px;       
   } 

Thanks
Princy.


0
Albert Shenker
Top achievements
Rank 1
Veteran
answered on 18 Nov 2008, 05:01 PM
thanks for the suggestion, but there are a couple problems with this solution. It would appear this solution will not work when the toolbar is within a scrollable area. My grid and toolbar are on a page which will scroll. When the scrolling occurs, the right-justified button does not move with this solution. Furthermore, the right-justified button itself doesn'ts seem to behave properly. Hovering over it does not display the same skin styles as the regular button.
Tags
ToolBar
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Answers by
Princy
Top achievements
Rank 1
Albert Shenker
Top achievements
Rank 1
Veteran
Share this question
or