jsgrid未显示选择字段的数据

时间:2019-07-24 06:39:18

标签: jsgrid

我正在通过api调用填充jsgrid。但是它仅在字段类型设置为“文本”时才有效。我想将其设置为“选择”(这样提到我的编辑要求)类型。

  {
    name: "currentWorkingBranch",
    type: "text",
    <!--    
     editTemplate:function(value,item)
     { -->
    <!-- return "<select ></select>"}, -->
    //items: list,
    //valueField: "branchId",
    //textField: "branchName",

    width: 50,
    validate: "required"
   }

如果我提到类型:“文本”,那么数据将正确加载。但是,如果我将其更改为键入:“ select”,那么它将变为空白。

0 个答案:

没有答案
相关问题