Adjacent toolbars

3 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 17 Nov 2008 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Nov 2008 Link to this post

    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.


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 18 Nov 2008 Link to this post

    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.
Back to Top