ToolTip per Item

2 posts, 0 answers
  1. Lucas
    Lucas avatar
    3 posts
    Member since:
    Aug 2008

    Posted 14 Jul 2009 Link to this post

    Is there a way to configure a tooltip for the items in the RadCombo for silverlight?  I need each one to have a tip.

  2. Boyan
    Boyan avatar
    758 posts

    Posted 17 Jul 2009 Link to this post

    Hello Lucas,

    There is a way to configure a tooltip for each element of a RadCombobox. I have attached a simple project how you can attach manually to each element, all declared in xaml. Of course you can add it to a databinded RadCombobox if you put it into the DataTemplate. Here is a simple code how it can be done:

                <DataTemplate x:Key="ComboBoxCustomTemplate"
                    <Grid Margin="5,5,5,5" Width="350" m:ToolTipService.ToolTip="{Binding Name}" > 
                            <ColumnDefinition /> 
                            <ColumnDefinition /> 
                            <RowDefinition /> 
                            <RowDefinition /> 
                        <TextBlock FontWeight="Bold" Grid.ColumnSpan="2" Text="{Binding Name}" /> 
                        <TextBlock Grid.Row="1" Text="Phone:" /> 
                        <TextBlock Grid.Row="1" Foreground="Blue" Margin="40,0,0,0" 
                                Text="{Binding Phone}" /> 
                        <TextBlock Grid.Row="1" Grid.Column="1" Text="Zip:" /> 
                        <TextBlock Grid.Row="1" Foreground="Blue" Grid.Column="1" Margin="26,0,0,0" 
                                Text="{Binding Zip}" /> 
                <DataTemplate x:Key="ComboBoxSimpleTemplate"
                        <TextBlock Foreground="Red" Text="{Binding Name}" /> 

     This code block is from our online Databinding demo. I have just added the tooltip to the grid that wraps the items.

    Hope that helps. If you need more help please let me know.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top