ListBox buttons tooltip localization

3 posts, 0 answers
  1. brian
    brian avatar
    23 posts
    Member since:
    Aug 2008

    Posted 25 Oct 2011 Link to this post

    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. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 28 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. brian
    brian avatar
    23 posts
    Member since:
    Aug 2008

    Posted 31 Oct 2011 Link to this post

    Thanks Dimitar, that works.
Back to Top