0
私の剣道グリッドのポップアップエディタでは、2つのドロップダウンリストがグリッドの2つのフィールドを連結しています。それを持っている?以下に、私は私のポップでドロップダウンリストのショー(モデル&プロデューサー)アップエディタが欲しい、 が、各パーツを保存する時にその場で席私のグリッドではないポップアップエディタに2つのフィールドを持たせる方法
$("#turbingrid").kendoGrid({
// debugger;
dataSource: dataSource,
scrollable: false,
columns: [
{ field: 'DeviceIP', title: 'DeviceIP', width: '100px', id: 'DeviceIP' },
{ field: 'Producer', title: 'Producer', width: '80px', editor: ProductNameDropDownEditor, },
{ field: 'Model', title: 'Model', width: '220px' },
{ field: 'DeviceType', title: 'DeviceType', width: '100px',editor: deviceTypesList },
{ field: 'Description', title: 'Description', width: '220px' },
{ field: 'Username', title: 'Username', width: '120px' },
{ field: 'Password', title: 'Password', width: '100px' },
{ field: 'PublicIP', title: 'PublicIP', width: '120px' },
{ field: 'device_id', title: 'device_id', width: '120px',hidden:true },
{ command: ["edit"], title: " " }],
editable: "popup",
//edit:
// function() {
// document.getElementsByName("DeviceIP")[0].disabled = true;
// },
edit: function(e) {
e.container.find("label[for='device_id']").parent().hide();
e.container.find("div[data-container-for='device_id']").hide();
}
});