I'm using the below markup to create a Combox that has a Header Template. I have a potential 10000+ records so I'm using LoadOnDemand to populate the rows BUT I would like to be able to populate the HEADER labels immediately. See the second code snippet..
The code to fire the GetTranslation is currently ignored but I've also tried the below in Init, PreRender, ItemsCreated, in all cases its either too early or in ItemsCreated, it only fires once I actually start type, which is too late.
The code to fire the GetTranslation is currently ignored but I've also tried the below in Init, PreRender, ItemsCreated, in all cases its either too early or in ItemsCreated, it only fires once I actually start type, which is too late.
Dim HeaderCommitmentNumber As Label = DirectCast(e.Item.FindControl("lblCommitmentNumber"), Label)Dim HeaderVendor As Label = DirectCast(e.Item.FindControl("lblVendor"), Label)HeaderCommitmentNumber.Text = MasterPage.GetTranslation("Number", False)HeaderVendor.Text = MasterPage.GetTranslation("VendorDescription", False)<telerik:RadComboBox ID="CommitmentNumber" runat="server" Width="100px" Height="200" DropDownWidth="450" EnableLoadOnDemand="true" ItemsPerRequest="10" DataTextField="ReferenceDocumentNumber" HighlightTemplatedItems="true" ExpandDelay="0" ExpandAnimation-Duration="0" CollapseAnimation-Duration="0" CollapseDelay="0" LoadingMessage='<%#MasterPage.GetTranslation("Loading", False)%>' > <HeaderTemplate> <div style="width: 420px;"> <div style="width: 75px; float: left; padding: 0 11px 0 11px; color: rgb(0, 21, 110) !important;"> <asp:Label ID="lblCommitmentNumber" runat="server" Text='<%#MasterPage.GetTranslation("Number", False)%>' Font-Bold="true" /> </div> <div style="width: 295px; float: left; padding: 0 11px 0 11px; color: rgb(0, 21, 110) !important;"> <asp:Label ID="lblVendor" runat="server" Text='<%#MasterPage.GetTranslation("VendorDescription", False)%>' Font-Bold="true" /> </div> </div> </HeaderTemplate> <ItemTemplate> <ul> <li> <!-- Row --> <ul> <li id="col1"> <div style="width: 75px; float: left; padding: 0 11px 0 11px; color: rgb(0, 21, 110) !important;"> <asp:Label ID="ReferenceDocumentNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ReferenceDocumentNumber").ToString()%>'></asp:Label> </div> </li> <li id="col2"> <div style="width: 295px; float: left; color: rgb(0, 21, 110) !important; margin-left: 5px;"> <div> <asp:Label ID="lblVendor" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Vendor").ToString()%>'></asp:Label> </div> <div> <asp:Label ID="lblVendorDesc" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Description").ToString()%>'></asp:Label> </div> </div> </li> </ul> </li> <!-- End of row --> </ul> </ItemTemplate> </telerik:RadComboBox>