Using your example for Performance with Web Services. My app returns 8000+ items from the service and loads in < 10 seconds. Yet the RCB appears empty after loading. What am I mssing?
| function RequestingLoadofCombo(sender, eventArgs) |
| { |
| eventArgs.get_context()["DivID"] = RowDivID; |
| eventArgs.get_context()["Type"] = ContactType; |
| } |
| function Loaded() |
| { |
| alert("Loaded"); |
| } |
| <telerik:RadComboBox ID="NonMembersComboBox" runat="server" |
| Height="100px" Width="220px" ShowMoreResultsBox="true" MarkFirstMatch="true" |
| EnableLoadOnDemand="True" OnClientItemsRequesting="RequestingLoadofCombo" |
| OnClientItemsRequested="Loaded"> |
| <WebServiceSettings Method="LoadCombo" Path="Admin.aspx" /> |
| </telerik:RadComboBox> |
| public class ComboBoxItemData |
| { |
| private string text; |
| public string Text |
| { |
| get { return text; } |
| set { text = value; } |
| } |
| } |
| public static RadComboBoxData LoadCombo(RadComboBoxContext context) |
| { |
| int divID = (int)(context["DivID"]); |
| string typeString = (string)(context["Type"]); |
| char type = Convert.ToChar(typeString); |
| RadComboBoxData result = new RadComboBoxData(); |
| List<RadComboBoxItemData> items = new List<RadComboBoxItemData>(); |
| List<string> list = new List<string>(); |
| Contacts c = new Contacts(); |
| list = c.GetNonContacts(divID, type); |
| foreach (string id in list) |
| { |
| RadComboBoxItemData itemData = new RadComboBoxItemData(); |
| itemData.Text = id; |
| items.Add(itemData); |
| } |
| result.Items = items.ToArray(); |
| result.EndOfItems = true; |
| return result; |
| } |