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

ListBox buttons tooltip localization

2 Answers 80 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
brian
Top achievements
Rank 1
brian asked on 25 Oct 2011, 07:11 PM
Hi,

I need to localize my Rad ListBox for 3 languages. It's all good except to tooltips for buttons. I found this article that explains how tooltips can be set in JavaScript but I need to use resource files for that.

So my ListBox controls looks like this:

 <table style="vertical-aligntop;">
                                        <tr>
                                            <td style="vertical-aligntop;">
                                                <label> 
                                                    <asp:Literal ID="Literal1" runat="server" meta:resourceKey="RadPanelLeftLabel" />
                                                </label>                                                    
                                                    <br />
                                                <telerik:RadListBox runat="server" ID="RadListBoxSource" Height="200px" Width="200px"
                                                   AllowTransfer="true" TransferToID="RadListBoxDestination"  
                                                    TransferMode="Copy" AllowReorder="false" SelectionMode="Multiple" 
                                                    EnableDragAndDrop="true"  ButtonSettings-TransferButtons="TransferFrom,TransferAllFrom"
                                                    OnClientTransferred="ShowHideValidationMessage" 
                                                    AutoPostBackOnTransfer="true" OnTransferred="SortDestinationListBox" />                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                            </td>
                                            <td style="vertical-aligntop;">
                                                <label>
                                                 <asp:Literal ID="Literal2" runat="server" meta:resourceKey="RadPanelRightLabel" />
                                                    </label>
                                                    <br />
                                                <telerik:RadListBox runat="server" 
                                                ID="RadListBoxDestination" Height="200px" Width="200px"
                                                AllowReorder="false" AllowDelete="true" />     
                                                                                                                                                                                      
                                                <asp:Label ID="lblRadListBoxDestinationEmpty" 
                                                runat="server" Font-Bold="true" ForeColor="Red" 
                                                meta:resourceKey="lblRadListBoxDestinationEmpty"
                                                Visible="false"/>
 
                                            </td>
                                        </tr>
                                    </table>


Can you please show me how I can localize tooltips for transfer buttons with resource files much like I did for say titles above listboxes.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 28 Oct 2011, 08:12 AM
Hi Brian,

Please refer to the following demo demonstrating how to localize the text as well as the tool tip of the RadListBox's buttons based on specific Culture.

Additionally you could use the new "LocalizationPath" property to specify a relative path to directory with localization files.

Greetings,
Dimitar Terziev
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
brian
Top achievements
Rank 1
answered on 31 Oct 2011, 05:40 PM
Thanks Dimitar, that works.
Tags
ListBox
Asked by
brian
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
brian
Top achievements
Rank 1
Share this question
or