首页 > 解决方案 > dxForm 内的 dxList 未提交 - devextreme jquery 小部件

问题描述

在 dxList 中提交 dxForm,dxList 字段未提交(其他类型的字段是)。

是 dxForm 的限制还是我做错了什么

$("#form").dxForm({
    formData: formFields,
    readOnly: false,
    showColonAfterLabel: true,
    labelLocation: "top",
    minColWidth: 300,
    colCount: 1,
    items: [
                {
                    
                    itemType: "group",
                    colCount: 3,
                    items: [
                        {
                            dataField: "myField",
                            editorType: "dxList",
                            editorOptions: {
                                dataSource: new DevExpress.data.DataSource({
                                    store: new DevExpress.data.ArrayStore({
                                        key: "ID",
                                        data: tipoPra
                                    })
                                }),
                                itemTemplate: function (data) {
                                    return $("<div>").text(data.ID + ' ' + data.Description);
                                },
                                showSelectionControls: true,
                                selectionMode: "all",   
                                height: 400
                            }
                        }
                    ]
                }

标签: jquerydevexpressdevextreme

解决方案


推荐阅读