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

Localization for Header Template

1 Answer 45 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 24 Feb 2014, 04:32 PM
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>

1 Answer, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 07 Mar 2014, 02:54 PM
Resolved and not a Telerik related issue.
Tags
ComboBox
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Share this question
or