Search code examples
jquerykendo-uitelerikkendo-gridkendo-datepicker

Date Picker Validations


I have the following demo

What I would like to achieve here is when the Edit button is clicked

1) Date picker should have dates which are greater than End Date if Proj End Date is is empty

2) Date picker should have dates which are greater than Proj End Date if Proj End Date is is not empty

How can I do this?


Solution

  • Please try this

    Update 1:-

    I have implemented below function in above code:

    1. If projEndDate field have no value then its minimum value should be greater (or equal to) 'EndDate' field.

    2. If projEndDate field have value then its minimum value should greater (or equal to) projEndDate field.

    Let me know if any concern.