1
코드 :검도 그리드 열 입력란에 최소값을 어떻게 적용합니까?
나는 사용자 만 MoreNames 열을 0 이상이있는 번호를 입력 할 수 있는지 확인하려면function directorsOrRecipients(e)
{
$("<div/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
transport: {
read: { url: "http:...xxxx" + e.data.AwardTitleId, type: "GET" }
},
schema: {
model: {
id: "namefirstlast",
fields: {
"namefirstlast": { editable: true, type: "string" },
"directorsequence": { editable: true, type: "number" },
"isonballot": { editable: true, type: "boolean" },
"concatenation": { editable: true, type: "string" },
"MoreNames": { editable: true, type: "number" },
}
},
}
},
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: "100px" }],
sortable: true,
editable: "inline",
toolbar: [{ name: "create", text: "Add New Director/Recipient" }]
});
}
. 음수는 없습니다.
이 그리드는 검도에서 생성되므로, 내가 만든 간단한 HTML 구조가 아닙니다.
이
함께 내가 걱정 텍스트 상자에 대한 DOM 개체입니다 :이 개체를 선택하고 "분"의 속성을 추가하는 시도<input type="text" name="MoreNames" data-type="number" data-bind="value:MoreNames" data-role="numerictextbox" role="spinbutton" class="k-input" aria-disabled="false" aria-readonly="false" style="display: none;">
하지만 난 믿고 날 리드하는을 선택할 수 없습니다 잘못 선택했습니다.
$("[name='MoreNames']").attr("min", "0");
사람이 나를 좀 도와 줄 수 :
이것은 내가 뭘하려?