selectedIndex
这个词你考虑过吗?

解决方案 »

  1.   

    值固定和不固定不重要,主要是能使用combox选择
      

  2.   

    配置editor为'combobox'就行了,easyui的demo有这种示例
    var products = [
        {productid:'FI-SW-01',name:'Koi'},
        {productid:'K9-DL-01',name:'Dalmation'},
        {productid:'RP-SN-01',name:'Rattlesnake'},
        {productid:'RP-LI-02',name:'Iguana'},
        {productid:'FL-DSH-01',name:'Manx'},
        {productid:'FL-DLH-02',name:'Persian'},
        {productid:'AV-CB-01',name:'Amazon Parrot'}
    ];
    //....
    { field: 'Ptype', title: '类别', width: 200, editor:{type:'combobox',options:{valueField:'productid',textField:'name',data:products,required:true}}}