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

Display help text per item

1 Answer 62 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Web Services
Top achievements
Rank 2
Web Services asked on 31 May 2013, 09:18 PM
Is there a way to display different text as a user hovers over individual items for a rad combobox? I don't care if it's a tool tip or not, it's just simple text. Basically, I have a combo box of abbreviated items, and I'd like to display the full name as you hover over them to select one.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 05 Jun 2013, 10:15 AM
Hi,

 
One way to achieve this scenario is as in the code below:

<telerik:RadComboBox ID="RadComboBox2" runat="server" Width="217px"
             DataSourceID="SqlDataSource1" DataTextField="ProductName" DataValueField="ProductID">
                    <ItemTemplate>
                          <asp:Label runat="server" ID="Label1" Text='<%# Eval("ProductName")%> '></asp:Label>
                          <telerik:RadToolTip ID="RadToolTip1" runat="server" Width="100" Height="10" TargetControlID="Label1"
                              Position="BottomRight" Text='<%# Eval("ProductID")%>'>
                          </telerik:RadToolTip>
                      </ItemTemplate>
                      <CollapseAnimation Duration="200" Type="OutQuint" />
                  </telerik:RadComboBox>
        <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
              ProviderName="System.Data.SqlClient" SelectCommand="SELECT [ProductID], [ProductName] FROM [Products] ORDER By ProductName" />

Hope this will be helpful.
Regards,
Plamen
Telerik
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.
Tags
ComboBox
Asked by
Web Services
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or