Results 1 to 2 of 2

Thread: Grid Updater using Combo box issue

  1. #1

    Default Grid Updater using Combo box issue

    I have a grid using the row updater (see code below), my issue is I need to fire the user id back in the ajax post details but update the grid with the username, the code below updates the grid with the user id as you would expect. I have no idea how I should go about achieving this could anyone point me in the right direction please?

    Many thanks
    Boffin

    Code:
    var outstanding_task_grid = new Ext.grid.GridPanel({
        id: 'outstandingGrid',
        store: ds_outstanding_tasks,
        plugins: [editor],
        height: 348,
        viewConfig: {
            forceFit: true,
            scrollOffset: 0,
        },
        columns: [
            {
                id: 'id',
                header: 'ID',
                dataIndex: 'taskid',
                width: 50,
                sortable: true
            },{
                header: 'Task',
                dataIndex: 'label',
                width: 250,
                sortable: true,
                editor: {
                    xtype: 'textfield',
                    allowBlank: false
                }
            },{
                header: 'Owner',
                dataIndex: 'taskowner',
                width:200,
                editor: {
                    xtype: 'combo',
                    store: ds_users,
                    displayField:'fullname',
                    valueField: 'userid',
                    typeAhead: true,
                    forceSelection: true
                }
            }
        ]
    });

  2. #2
    Sencha User MiamiCoder's Avatar
    Join Date
    Mar 2009
    Location
    Miami, FL
    Posts
    144

    Default

    Take a look at the ComboBox in Grid section of the combo box docs: http://www.extjs.com/deploy/ext-3.1.....form.ComboBox

Posting Permissions

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