Jan 12, 2017, 12:52 PM
Datefield cannot bind anymore
Hi Guys,
Kindly assist.
I have been using ext 1.x for close to 4 years. Suddenly the detefield cannot bind to a system datetime.
This is the issue:
<CODE>
<ext:DateField AnchorHorizontal="92%" ID="ReceiptDate" DataIndex="ReceiptDate" runat="server" AllowBlank="false" MsgTarget="Side" LabelStyle="font-size: 11px; font-weight: bold" FieldLabel="Receipt Date" SelectedDate='<%# DateTime.Now %>' ReadOnly='<%# Session["CanBackDate"] %>' AutoDataBind="true" OnDataBinding="ReceiptDate_DataBinding">
<Listeners>
<Select Handler="Ext.net.DirectMethods.PersistReceiptDate( ReceiptDate.getValue());" />
</Listeners>
</ext:DateField>
</CODE>
NB/ I bind DateTime.Now to the ReceiptDate, but it returns null:
Attached is the error:
Thanks.
Appreciated!!
Kindly assist.
I have been using ext 1.x for close to 4 years. Suddenly the detefield cannot bind to a system datetime.
This is the issue:
<CODE>
<ext:DateField AnchorHorizontal="92%" ID="ReceiptDate" DataIndex="ReceiptDate" runat="server" AllowBlank="false" MsgTarget="Side" LabelStyle="font-size: 11px; font-weight: bold" FieldLabel="Receipt Date" SelectedDate='<%# DateTime.Now %>' ReadOnly='<%# Session["CanBackDate"] %>' AutoDataBind="true" OnDataBinding="ReceiptDate_DataBinding">
<Listeners>
<Select Handler="Ext.net.DirectMethods.PersistReceiptDate( ReceiptDate.getValue());" />
</Listeners>
</ext:DateField>
</CODE>
NB/ I bind DateTime.Now to the ReceiptDate, but it returns null:
Attached is the error:
Thanks.
Appreciated!!
Last edited by ilanga; Jan 13, 2017 at 6:15 AM.