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

Localization

3 Answers 43 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
OfficeHeart
Top achievements
Rank 1
OfficeHeart asked on 24 Oct 2012, 08:08 AM
Hi,

How to localize the "Remove token" text of the AutocompleteBox?

Thanks,
Martin

3 Answers, 1 is accepted

Sort by
0
Kalina
Telerik team
answered on 24 Oct 2012, 08:39 AM
Hi martin,

Currently the RadAutoCompleteBox does not support localization of the "remove token" link text.

You can try to change it by handling the OnClientEntryAdded event in this way:
     
<script type="text/javascript">
 
function OnClientEntryAdded(sender, eventArgs){
    $telerik.$(eventArgs.get_entry().get_token()).find('a').attr("title", "your text here");
}
     
</script>

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Pratiksha
Top achievements
Rank 1
answered on 24 Apr 2019, 02:01 PM

Hi Kalina,

Can we show the value of the item as the tootip of the token?

For example; I am displaying Staff Name as a text in RadAutoComplete and when hoovered at token is there any way of showing the value i.e. StaffCode? 

 

Thank you

P

0
Peter Milchev
Telerik team
answered on 29 Apr 2019, 10:34 AM
Hello Pratiksha,

For convenience and better visibility from the community, I am sharing the reply from the support thread where we discussed the same question.

One easy solution would be using templates so that you can set the value as the title attribute(which is used for showing a tooltip) of an html element, or show the value directly. 
Another solution would be using the OnClientRequested event to iterate the items and set their title attribute that would trigger the tooltip: 

Regarding the Tokens, you can use the OnClientEntryAdding or OnClientEntryAdded event to access the token and add the title attribute to it: 

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
AutoCompleteBox
Asked by
OfficeHeart
Top achievements
Rank 1
Answers by
Kalina
Telerik team
Pratiksha
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or