PDA

View Full Version : Date filed issue



bindumisra
19 Jul 2016, 5:23 AM
I have two column Effective Date and Expiration Date , expiration Date should contain only today's and future date and Effective Date should be less than expiration Date

But the problem is only first time its set max value for effectiveDate after that every time is showing that date only for each cell of effective Date



https://fiddle.sencha.com/#fiddle/1dsi

Gary Schlosberg
19 Jul 2016, 11:14 AM
You should be using the setMaxValue() (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Date-method-setMaxValue) to set the max value on your datefield.
https://fiddle.sencha.com/#fiddle/1dth

bindumisra
20 Jul 2016, 4:57 AM
Thanx for help

its working fine .

https://fiddle.sencha.com/#fiddle/1dsi

one more issue i am facing ,for empty date field i need to show ' Good till cancel' , if user manually deleting date and click outside it is showing old selected value

Gary Schlosberg
21 Jul 2016, 1:06 PM
one more issue i am facing ,for empty date field i need to show ' Good till cancel' , if user manually deleting date and click outside it is showing old selected value


You are setting the allowBlank config to false. Setting to true should allow a user to empty the date fields.