TelerikRadComboBoxを含むリピーターがあります。
<asp:Repeater ID="rpt" runat="server">
<ItemTemplate>
<telerik:RadComboBox ID="rcb" runat="server" EnableLoadOnDemand="true"
AllowCustomText="true" ItemRequestTimeout="1000"
NumberOfItems="10" MarkFirstMatch="false">
</telerik:RadComboBox>
</ItemTemplate>
</asp:Repeater>
リピーターのItemDataBoundイベントで、次のようにItemsRequestedイベントを接続しています。
private void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) {
RadComboBox rcb = (RadComboBox)e.Item.FindControl("rcb");
rcb.ItemsRequested += rcb_ItemsRequested;
}
private void rcb_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) {
// Database call to load items occurs here.
// As configured, this method is never called.
}
現在、サーバー側のrcb_ItemsRequestedメソッドが呼び出されることはありません。ItemDataBoundでItemsRequestedイベントを配線するのは問題があると思いますが、問題は他の場所にある可能性があります。
リピーター内でTelerikRadComboBoxを適切に使用する方法に関するアイデアはありますか?