Localization for Header Template

2 posts, 0 answers
  1. Alex
    Alex avatar
    9 posts
    Member since:
    Oct 2013

    Posted 24 Feb 2014 Link to this post

    I'm struggling to see how I would be able to localise strings for my HeaderTemplate. How can I achieve this correctly?

    Usually I would perform localisation like so:

     <asp:Literal ID="Literal132" runat="server" Text="<%$ Resources:Common, EMAIL_SUBJECT %>" />

    But when I attempt this in the HeaderTemplate the ASPX page does not load correctly.

    I have read the localization section of your documentation but this seems like it would only apply to your inbuilt text, such as the text in the MoreResultsBox.

    Here is how my control is marked up.

    <telerik:RadComboBox
        ID="cmbEmailContacts"
        runat="server"
        EnableLoadOnDemand="false"
        HighlightTemplatedItems="true"
        ShowMoreResultsBox="false"
        MarkFirstMatch="true"
        AutoPostBack="false"
        CheckBoxes="true"
        DropDownWidth="450px"
        DataSourceID="SqlDataSource1"
        DataTextField="UserName"
        DataValueField="UserKey"
        EnableVirtualScrolling="true"
        AllowCustonText="false"
        EmptyMessage="Select Contacts..."
        Filter="None"
        CssClass="textbox">
        <HeaderTemplate>
            <ul>
                <li class="col1h">Select</li>
                <li class="col2h">Username</li>
                <li class="col3h">Email Address</li>
            </ul>
        </HeaderTemplate>    
        <ItemTemplate>
            <ul>
                <li class="col2"><%# Eval("UserName") %> </li>
                <li class="col3"><%# Eval("EmailAddress") %> </li>
            </ul>
        </ItemTemplate>
    </telerik:RadComboBox>

  2. Alex
    Alex avatar
    9 posts
    Member since:
    Oct 2013

    Posted 07 Mar 2014 in reply to Alex Link to this post

    Resolved and not a Telerik related issue.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top