Tool tips not working

2 posts, 0 answers
  1. Maithree
    Maithree avatar
    2 posts
    Member since:
    Dec 2010

    Posted 18 Oct 2011 Link to this post

    Hi,

    I am using RadDropdownList and tool tips dont appear to the items in the list.I set the Auto tool tip property to all the elements.
    Also ,I cannot scroll thru the list using up and down arrow keys in the auto suggest list
    Also the suto suggest list does a '<typedtext>%' search.Is there any setting that does the '%typedtext%' search
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 20 Oct 2011 Link to this post

    Hi Maithree,

    Thank you for writing.

    1) You should handle RadDropDownList's VisualListItemFormatting event and set ToolTipText for each VisualItem to desired text:

    private void radDropDownList1_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
    {
                args.VisualItem.ToolTipText = args.VisualItem.Text;
    }

    Please refer to the attached project that demonstrates how to show tooltips for RadDropDownList items.
    2) I was not able to reproduce the described issue with the arrow keys navigation in the auto suggest list with the attached project.
    3) You should inherit AutoCompleteAppendHelper and override its DefaultCompare function to return Contains instead of default StartWith:
    protected override bool DefaultFilter(RadListDataItem item)
    {
            return item.Text.Contains(this.Filter);
    }

    Please refer to the attached project that demonstrates this functionality.

    I hope this helps.

    Regards,
    Peter
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top