ユーザーが次のフィールドに入力する値を取得する必要があります。
- isOnBallot
- 連結文字列
以下のコードのコメントは、これらの変数を使用する場所を示しています。
ここで行う方法がわからないのは、これら 2 つのフィールドで VALUE を参照する方法だけです。剣道でこれを行うことになっている特定の方法があるかどうか、またはjqueryを使用しようとするかどうかはわかりません。
たとえば、要素 concatenationString を調べると、次のように表示されます。
<input type="text" class="k-input k-textbox" name="concatenation" data-bind="value:concatenation">
グリッドの定義は次のとおりです。
function directorsOrRecipients(e)
{
$("<div/>").appendTo(e.detailCell).kendoGrid({
reorderable: true,
resizable: true,
dataSource: {
transport: {
read: {
url: "http://localhost/x/api/Awards/directors/" + e.data.AwardTitleId,
type: "GET"
},
create: {
url: "http://localhost/x/api/awards/directors",
type: "POST",
data: {
awardTitleId: e.data.AwardTitleId,
personId: localStorage.personId,
nameId: localStorage.nameId,
isOnBallot: "True",//I need to get this value based on the user input.,
concatenationString: "test1",//I need to get this value based on the user input.
whoEntered: 0
}
}
},
schema: {
model: {
id: "namefirstlast",
fields: {
"namefirstlast": { editable: true, type: "string" },
"directorsequence": { editable: true, type: "number", validation: { min: 1 } },
"isonballot": { editable: true, type: "boolean" },
"concatenation": { editable: true, type: "string" },
"MoreNames": {
editable: true,
type: "number",
validation: { min: 0 }
},
},
},
}
},
columns: [
{ field: "namefirstlast", title: "Name", editor: namesAutoComplete },
{ field: "directorsequence", title: "Director Sequence", format: "{0:n0}" },
{ field: "isonballot", title: "On ballot?" },
{ field: "concatenation", title: "Concatenation" },
{ field: "MoreNames", title: "More names?", format: "{0:n0}" },
{ command: ["edit"], title: " ", width: 100 }],
sortable: true,
sort: { field: "namefirstlast", dir: "desc" },
editable: "inline",
toolbar: [{
name: "create",
text: "Add New Director/Recipient"
}]
});
}
誰でも私に手を差し伸べることができますか?
ありがとう!