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

AutoCompleteBox: CustomTextBlock example incomplete

1 Answer 51 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 Apr 2013, 03:41 PM
In the example listed at http://www.telerik.com/help/winforms/editors-autocompletetextbox-creating-custom-blocks.html .  At the very bottom you have some code for 

radAutoCompleteBox1.TextBlockFormatting += new TextBlockFormattingEventHandler(radAutoCompleteBox1_TextBlockFormatting);
this.radAutoCompleteBox1.Text = "Euro;USD;GBP;";

Only new textblocks created are formatted with the new style.  These 3 text blocks 'Euro' 'USD' and 'GBP' are in the old format.  The TextBlockFormatting code is not listed.

I need this to finish up my custom TextBlock.

Thanks

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Apr 2013, 08:04 AM
Hello John,

Thank you for noticing the missing snippet. I will make sure it gets corrected with the next upload. Your 
Telerik Points have been updated for this report.

In regards to the observed behavior, as long as you have subscribed to the event prior adding the items, they will be customized according to your definition in the event handler. Please refer to the attached video.

I hope that you find this information useful.
 

Greetings,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
AutoCompleteBox
Asked by
John
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or