Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 网格中的组合框_Javascript_Extjs - Fatal编程技术网

Javascript 网格中的组合框

Javascript 网格中的组合框,javascript,extjs,Javascript,Extjs,请帮助我,如何在字段中插入组合框 text: "Combo need is here!!!", width: 100, dataIndex: '', sortable: true 这里需要组合框 关于extjs的资料很少:( 还有一个问题,extjs是否适合移动接口? 我有一个网上商店,使用extjs手机界面实用吗 我的代码: Ext.onReady(function(){ Ext.define('User', { extend: 'Ext.data.Model', fie

请帮助我,如何在字段中插入组合框

text: "Combo need is here!!!", width: 100, dataIndex: '', sortable: true
这里需要组合框

关于extjs的资料很少:(

还有一个问题,extjs是否适合移动接口? 我有一个网上商店,使用extjs手机界面实用吗

我的代码:

Ext.onReady(function(){
  Ext.define('User', {
    extend: 'Ext.data.Model',
    fields: [
      {name: 'id', type: 'int'},
      {name: 'day', type: 'string'},
      {name: 'time', type: 'string'},
      {name: 'what', type: 'string'},
      {name: 'combo', type: 'string'}
    ]
  });

  var store = Ext.create('Ext.data.Store', {
    model: 'User',
    proxy: {
      type: 'ajax',
      url: 't.php',
      reader: {
        type: 'json'
      }
    }
  });

  var grid = Ext.create('Ext.grid.Panel', {
    store: store,
    columns: [
      {
        text: "Day", flex: 1, dataIndex: 'day', sortable: true
      },
      {
        text: "Time", width: 115, dataIndex: 'time', sortable: true
      },
      {
        text: "sourse", width: 100, dataIndex: 'what', sortable: true
      },
      {
        text: "Combo need is here!!!", width: 100, dataIndex: '', sortable: true // HERE!!!
      }
    ],
    height:700,

    renderTo: 'grid-example'
  });

  store.load();
});

您应该使用CellEditing或RowEditing插件,并将字段的编辑器属性设置为“combobox”

您不应该在手机上使用Sencha ExtJS,而应该使用Sencha Touch 2


您使用的是什么版本的ExtJs?