Results 1 to 2 of 2

Thread: Please help me to load list-item in extjs combobox

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    3

    Default Please help me to load list-item in extjs combobox

    Hello all,

    I'm new-bie in extjs. I am using extjs and MVC. I meet a problem below:

    I used Ext.data.JsonStore to load data for combobox. after loading data to combobox, I click to the combobox and I don't see any item in item list. But when i click to the blank list (dont have any item), a item will be shown in combobox

    here is my code:

    { xtype:'combo',
    fieldLabel:'Release manager',
    name:'ReleaseManager',
    dataIndex:'ID',
    modifiable:true,
    width: 230,
    listWidth: 230,
    allowBlank:true,
    resizable:true,
    editable:false,
    hiddenName:'ID',
    typeAhead: true,
    triggerAction: 'all',
    selectOnFocus:true,
    mode: 'remote',
    displayField:'UserName',
    valueField:'ID',
    checkField:'Checked',
    store:new Ext.data.JsonStore({
    proxy: new Ext.data.HttpProxy({
    url: RootURL+'/Release/GetUserList',
    method: 'GET'
    }),
    url : RootURL+'/Release/GetUserList',
    baseParams:{},
    root:'Rows',
    autoLoad: true,
    totalProperty: 'TotalCount',
    fields: ['ID', 'UserName']
    }),
    url:RootURL+'/Release/GetUserList'}

    image 1: data seems to be loaded to combobox, but item list is blank
    image 2: click to blank item list, a item will be shown

    1.jpg 2.jpg


    please help me... thanks a lot

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    Does your JSON actually have properties like "ID" and "UserName" in each data object to be parsed by and displayed in the combo?

Similar Threads

  1. How to select the first list item on a ComboBox?
    By staticboy in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 17 Oct 2018, 10:56 AM
  2. Trying to Load New List on Item Tap
    By markwyner in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 8 Mar 2011, 2:33 PM
  3. combobox with drop list whose item height (for each item) is 3 pixels high!
    By stratton in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Feb 2009, 8:50 AM
  4. add item not in combobox list
    By iceblast_01 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Dec 2008, 8:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •