RadToolBarDropDown Items Missing

4 posts, 1 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 08 Nov 2011 Link to this post

    I have the following definition for a RadToolBar:
    <telerik:RadToolBarDropDown  Text="Export Options">
        <Buttons>
            <telerik:RadToolBarButton runat="server" ImageUrl="~/_assets/images/report/excel.png" ToolTip="Export to Excel" />
            <telerik:RadToolBarButton runat="server" ImageUrl="~/_assets/images/report/csv.png" ToolTip="Export to CSV (Raw Data Dump)" />
        </Buttons>
    </telerik:RadToolBarDropDown>

    For some reason these items won't show up (see attachment). The parent RadToolBar instance is using the Windows7 skin, although I also tried the Vista skin and no luck there either. There is no data binding on this toolbar - all items are static and the RadToolBarDropDown in question is at the root level (inside the main <Items> collection). I'm on Q2 2011.

    Thoughts?
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Nov 2011 Link to this post

    Hello,

    Make sure that you have set the Text property for RadToolBarButton.
    aspx:
    <telerik:RadToolBarDropDown>
     <Buttons>
        <telerik:RadToolBarButton  Text="Edit" runat="server" ImageUrl="~/Images/editServerButton.gif"></telerik:RadToolBarButton>
     </Buttons>
    </telerik:RadToolBarDropDown>

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 09 Nov 2011 Link to this post

    Hello Scott,

    Indeed the behavior that you encounter is a bug of the RadToolBar control that we are already aware of. It happens only when you have not set any text but an image. Currently I could recommend that you use both image and text so that you can get the correct rendering of the control. 

    Kind regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  5. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 09 Nov 2011 Link to this post

    Thanks! Worked perfectly. I don't know why I didn't think of that - I was going to have text on it in the end anyway.
Back to Top