+ -
当前位置:首页 → 问答吧 → extjs combox tree

extjs combox tree

时间:2011-01-11

来源:互联网


  我做了一个combox 弹出 tre 发现无法选中
  我以前做一个combox 弹出 checkbox 的时候也发现这个问题、后来解决了
  是一样的问题吗?

作者: c3716317   发布时间: 2011-01-11

CSS code
layout: 'form',
                    labelWidth: 70,
                    items:
                    [{
                        name: 'cmbJuzhuqy',
                        xtype: 'combo',
                        store: new Ext.data.SimpleStore({ fields: [], data: [[]] }),
                        editable: false,
                        mode: 'local',
                        triggerAction: 'all',
                        forceSelection: true,
                        typeAhead: true,  
                        maxHeight: 200,
                        tpl: "<tpl for='.'><div style='height:200px'><div id='newtree'></div></div></tpl>",
                        width: 70,
                        fieldLabel: '居住区域',
                        allowBlank: false,
                        emptyText: '请选择...',
                        blankText: '不能为空',
                        listeners: {
                            expand: function () {
                                tree.render('newtree');
                                tree.expandAll();
                            },
                            click: function () {
                                Ext.getCmp('cmbJuzhuqy').setValue(node.text)
                            }
                        }
                    }]

作者: c3716317   发布时间: 2011-01-11

combox 弹出 checkbox 无法选中是ext的一个bug、

作者: c3716317   发布时间: 2011-01-11

热门下载

更多