[CLOSED] ComboBox - Store - no Items

  1. #1

    [CLOSED] ComboBox - Store - no Items


    i have a comboBox with a store and AjaxProxy. After autoload the combobox don't show items. Why ?

      <ext:ComboBox ID="ComboBox1" runat="server" DisplayField="Name" ValueField="ID" AnchorHorizontal="100%" FieldLabel="Test">
                    <ext:Store ID="st_space_members" runat="server" AutoLoad="true">
                            <ext:AjaxProxy Url="~/Space/GetSpaceMembersBySearch">
                                    <ext:JsonReader Root="ID" TotalProperty="total" />
                            <ext:Model ID="Model1" runat="server">
                                    <ext:ModelField Name="ID" />
                                    <ext:ModelField Name="Name" />
    public StoreResult GetSpaceMembersBySearch()
    //The Code with the result
    Thanks for help!
    Last edited by Daniil; Apr 30, 2013 at 4:18 AM. Reason: [CLOSED]
  2. #2
    Why Root="ID" in JsonReader? Please post a response of GetSpaceMembersBySearch action
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Why Root="ID" in JsonReader?
    I don't know, is this wrong ??

    public StoreResult GetSpaceMembersBySearch()
    var test = l_members.Select(s => new { ID = s.user_id.ToString(), Name = AccountController.GetUserByID(s.user_id).user_name }).ToList();
    result = new StoreResult(test, test.Count);
    return result
  4. #4
    Root is name of property which contains data for parsing
    The name of the property which contains the data items corresponding to the Model(s) for which this Reader is configured. For JSON reader it's a property name (or a dot-separated list of property names if the root is nested). For XML reader it's a CSS selector. For Array reader the root is not applicable since the data is assumed to be a single-level array of arrays.
    By default the natural root of the data will be used: the root JSON array, the root XML element, or the array.
    The data packet value for this property should be an empty array to clear the data or show no data.
    By default, root equals 'data' if StoreResult is used, see
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 5
    Last Post: Mar 15, 2013, 4:24 AM
  2. [CLOSED] Can not select combobox items using store
    By blurken in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 21, 2012, 1:20 AM
  3. Can not select combobox items using store
    By blurken in forum 2.x Help
    Replies: 0
    Last Post: May 14, 2012, 1:23 AM
  4. Replies: 0
    Last Post: Oct 25, 2011, 10:02 AM
  5. Replies: 2
    Last Post: Jan 17, 2011, 3:02 PM

Posting Permissions