1
我有一个带弹出可编辑属性的Kendo UI网格。我想在添加/编辑模式下使我的下拉列更宽,但我似乎无法改变宽度。我确实可以改变网格本身的宽度,但不能在编辑模式下。Kendo UI网格编辑模式列样式
这是否与某种编辑模板有关?我无法找到它的文档。
谢谢。 鲍勃
这里是我的样品格:
positGrid = $("#positGrid").kendoGrid({
dataSource: datasource,
toolbar: [
{ name: "create", text: "Add Position" }
],
columns: [{
field: "PositionId",
},
{
field: "Portfolio",
editor: portfolioDropDownEditor, template: "#=Portfolio#"
},
{
field: "Instrument",
width: "220px",
editor: instrumentsDropDownEditor, template: "#=Instrument#",
},
{
field: "NumOfContracts",
},
{
field: "BuySell",
editor: buySellDropDownEditor, template: "#=BuySell#"
},
{
command: [
{
name: "edit",
click: function (e) {
}
},
"destroy"
]
},
],
sortable: true,
editable: "popup",
});
刚一所说明,请。当我点击我的“添加”时,属性e.model.isNew()被评估为TRUE,然后当我点击内联的“编辑”按钮时再次为TRUE。那是因为它还没有被保存,所以网格仍然认为它是新的? –
你说得对,[api](http://docs.kendoui.com/api/framework/model#methods-isNew)说的是:“如果指定的字段的值等于默认值(通过字段配置)模型被认为是新的。“ –