ITeye博客

Combox加载后台数据不成功和显示不正常的问题

caodaoxi · 2010-12-12 20:09 · extjs · Web前端 · CMS · EXT · Markdown

代码:

 

var store = new Ext.data.JsonStore({
    url:"/cms/role_getAllRole.action",
    fields:["id","roleName"]
  })
  
  var roleCombo = new Ext.form.ComboBox({
    fieldLabel:"角色分配",
    store:store,
    emptyText:"请为用户分配角色",
    mode:"remote",
    allowBlank:false,
    hiddenName:"role_id",
    triggerAction:"all",
    valueField:"id",
    displayField:"roleName",

    readOnly:true
  });

此代码的combox不能正常显示 combox变成了普通的文本框 了  原因是readonly不能加 去了就行了

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。