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

RadToolBarDropDown Items Missing

3 Answers 83 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 08 Nov 2011, 04:34 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 09 Nov 2011, 07:32 AM
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.
0
Kate
Telerik team
answered on 09 Nov 2011, 11:28 AM
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
0
digitall
Top achievements
Rank 1
answered on 09 Nov 2011, 02:42 PM
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.
Tags
ToolBar
Asked by
digitall
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Kate
Telerik team
digitall
Top achievements
Rank 1
Share this question
or