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

Tool tips not working

1 Answer 130 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Maithree
Top achievements
Rank 1
Maithree asked on 18 Oct 2011, 08:15 AM
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

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 20 Oct 2011, 09:29 AM
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.

Tags
DropDownList
Asked by
Maithree
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or