Mar 15, 2014, 9:39 AM
[CLOSED] TimeField is not valid when loading grid record to a form
Hi Ext.Net,
I have a FormPanel and a GridPanel. When user double click on a row, the system will load record to the form. The question is that I have a TimeField and always gets the message like "07:00:00 is not a valid" (because the correct format should be HH:mm).
Could you please let me know how to solve it? Thanks!
The ModelField:
I have a FormPanel and a GridPanel. When user double click on a row, the system will load record to the form. The question is that I have a TimeField and always gets the message like "07:00:00 is not a valid" (because the correct format should be HH:mm).
Could you please let me know how to solve it? Thanks!
The ModelField:
<ext:ModelField Name="SCHEDULE_ON" DateReadFormat="HH:mm" />
To load a record to the form:<ItemDblClick Handler=" #{_extFormPanel}.getForm().loadRecord(record); "></ItemDblClick>
The TimeField:<ext:TimeField ID="Time_ScheduleTime" FieldLabel="Schedule Time" LabelAlign="Right"
Name="SCHEDULE_ON" Editable="false" runat="server" MinTime="00:00" MaxTime="23:00" Increment="60" Format="HH:mm" />
The DB column type is [time], MS SQL.
Last edited by Daniil; Mar 24, 2014 at 4:08 AM.
Reason: [CLOSED]