나는 지금 문제가 있습니다. 편집 가능한 필드가있는 검도 UI 그리드가 2 개의 날짜 유형으로되어 있습니다. 지금까지는 모든 것이 잘 작동합니다. 나에게 문제가되는 것은 시작일과 종료일을 확인하는 것입니다. 날짜는 항상 종료 날짜보다 작거나 같아야합니다. 이 두 필드의 유효성을 검사해야합니다. 아이디어가있다 누군가가 그것을 감사 검도 그리드 2 개의 datepicker의 유효성 검사
dataSource = new kendo.data.DataSource({
transport: {
read: {
url: controller + "/read",
type: "GET"
},
update: {
url: controller + "/update",
type: "POST",
dataType: "json"
//data: { model: "prueba" }
},
destroy: {
url: controller + "/delete",
dataType: "json",
type: "POST"
}
},
batch: true,
//pageSize: 10,
schema: {
model: {
id: "id_POSPlanningOpe",
fields: {
select: { type: "boolean", editable: false },
id_POSPlanningOpe: { editable: false, nullable: true },
codPdv: { editable: false },
nombrePdv: { editable: false },
regionPdv: { editable: false },
zonapdv: { editable: false },
fecha_Inicio: { type: "date", editable: true },
fecha_Fin: { type: "date", editable: true },
estado: { editable: false }
}
}
}
});
$("#grid").kendoGrid({
selectable: "multiple",
sortable: {
mode: 'single',
allowUnsort: false
},
dataSource: dataSource,
height: 500,
toolbar: [{ name: "save", text: "Grabar" }, { name: "cancel", text: Cancelar"}],
columns: [
{ title: "<span></span>", width: "20px", template: '<input type="checkbox" name="CheckRow" value="#= id_POSPlanningOpe #"></input>' },
{ field: "id_POSPlanningOpe", title: "<span class='Cabecera'>NRORUTA</span>", width: 80 },
{ field: "codPdv", title: "<span class='Cabecera'>CODIGO PDV</span>", width: 100 },
{ field: "nombrePdv", title: "<span class='Cabecera'>NOMBRE</span>" },
{ field: "regionPdv", title: "<span class='Cabecera'>REGION</span>" },
{ field: "zonapdv", title: "<span class='Cabecera'>ZONA</span>" },
{ field: "fecha_Inicio", title: "<span class='Cabecera'>FECHA INICIO</span>", template: '#= kendo.toString(fecha_Inicio,"dd/MM/yyyy") #', width: 100 },
{ field: "fecha_Fin", title: "<span class='Cabecera'>FECHA FIN</span>", template: '#= kendo.toString(fecha_Fin,"dd/MM/yyyy") #', width: 100 },
{ field: "estado", title: "<span class='Cabecera'>ESTADO</span>", width: 80 },
{ command: ["edit"], title: " ", width: "100px"}],
editable: 'inline'
});
는 [여기] (HTTP 날짜 유효성 검사에 대한 KendoUI 데모가 /demos.kendoui.com/web/datepicker/rangeselection.html). 너 해봤 니? 나는 당신의 사건이'그리드 (grid) '에 있다는 것을 알고 있지만 그렇게 다르지 않아야한다. – OnaBai