jqxGrid日付列フィールドで最大または最小の日付を設定するにはどうすればよいですか
$('#jqxGrid-grid').jqxGrid({
columns:
[
{
text: 'Created Date', datafield: 'created_date', filtertype:'date', width: 150}
//How to set date restriction for this field.
]
});
jQWidgets Gridの検証関数を実装することで、ユーザーの入力を検証できます。
text: 'Ship Date', datafield: 'date', columntype: 'datetimeinput', width: 110, align: 'right', cellsalign: 'right', cellsformat: 'd',
validation: function (cell, value) {
if (value == "")
return true;
var year = value.getFullYear();
if (year >= 2015) {
return { result: false, message: "Ship Date should be before 1/1/2015" };
}
return true;
}