In my application i am using 8 TimeField components in formpanel.
User can select the value from TimeField component as well as he can Type in to TimeFiled component.
I am using AM/PM date format in TimeField component.
Problem is : if user typed value is not available in TimeField store then null will return in binding.
How to resolve this problem .
Can you please give me solution other than timeField.setIncrement(1) ?
because timeField.setIncrement(1) throwing script error in IE8 with Windows ,FF6,FF7.
Each TimeField contain long list (1440 entries). and total 8 TimeFields having 11520 values.
This is impact in when formpanel loading in IE8 and FF 6/7 throwing script error.
If i set timeField.setIncrement(30); (like 10:00 AM 10:30 AM )then this problem will resolve.But another problem is raising.
If user type valid time like 10:05 AM .this is not available in TimeField store so null will assign in binding.
I had similar problem and the easiest workaround that I found is to use timeField.getRawValue() method, which really contains what user entered in field, no matter if value is in a model or not. Of course, manual validation and parsing to get Date object is needed if getRawValue() is used.
I consider this being GXT bug, TimeField.getValue() and getDateValue() should return even dates not contained in the popup menu list if 'forceSelection' property is set to false. What do you think?
I consider this being GXT bug, TimeField.getValue() and getDateValue() should return even dates not contained in the popup menu list if 'forceSelection' property is set to false. What do you think?
This would be a braking change and cannot be implemented. I would not say it is a bug as it was never intended to work like this. You could easily subclass TimeField to add this feature