PDA

View Full Version : expand Event Issue for DateField



W Tinku Singh
13 May 2015, 4:33 AM
Hi,

I am facing issue related to expand event on expanding datefield. The scenario is I have two date field, startDate and Enddate and End date Picker is initialized to today's date it should be initialized to Start Date. The scenario is satisfied(I came to know when I put debug point on Controller file untill it reach onExpand() method of Date.js. Its so because in onExpand() the date is set to current date) but It again goes to current date.
Please check the attached screen shots attached, and please do reply with solution.

Thanks in advance.5241052411

Gary Schlosberg
14 May 2015, 3:06 PM
I'm having a little trouble understanding the issue here and I can't read the errors in your images. Are you able to recreate the issue in a Fiddle?
https://fiddle.sencha.com/#home

jdkhamba
17 May 2015, 3:58 AM
Not quite sure how the date validations are implemented but it might be helpful to go through the sencha examples here:

http://docs.sencha.com/extjs/4.2.0/#!/example/form/adv-vtypes.html

This already does what you are exactly trying to do.