Posted 29 Oct 2012 Link to this post
Posted 01 Nov 2012 Link to this post
private
void
radAutoCompleteBox1_TextBlockFormatting(
object
sender, TextBlockFormattingEventArgs e)
{
TokenizedTextBlockElement token = e.TextBlock
as
TokenizedTextBlockElement;
if
(token !=
null
)
ITextBlock block = token
ITextBlock;
value = GetTokenValue(block.Text);
// YOU ACTION HERE
}
GetTokenValue(
string
text)
foreach
(RadTokenizedTextItem item
in
this
.radAutoCompleteBox1.Items)
(item.Text == text)
return
item.Value;
;
Private
Function
GetTokenValue(text
As
String
Object
Return
radAutoCompleteBox1.Items.First(
(item
RadTokenizedTextItem) item.Text = text).Value
End