1
私はJQGridを使用しているMVCアプリケーションを開発しています。 JQGridでは、CountryNameを表示する必要がありますが、CountryIDを保存しています。データがデータベースのものである場合Countryプロパティはnullです。 JavaScriptのJQGrid DropDownListing
colModel: [
{ key: true, hidden: true, name: 'ID', index: 'ID', sorttype: 'int' },
{ name: 'Name', index: 'Name', editable: true, inlineEditing: { keys: true }, minlength: 6 },
{ name: 'Description', index: 'Description', editable: true, inlineEditing: { keys: true } },
{ name: 'Country.Name', index: 'Country.Name', CountryID: 'name', editable: true, edittype: "select", editoptions: { value: citySelect() } },
],
そのが機能していない、次のようにあなたのCOLモデルを更新し、次のようにCOUNTRYNAMEと呼ばれるあなたのパーシャルクラスの新しいプロパティを持っています。 –
どのように動作していませんか?詳しく説明できますか? –