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:![Click image for larger version.
Name: error.jpg
Views: 106
Size: 98.1 KB
ID: 24812](https://forums.ext.net/attachment.php?s=978d7f7b9ede7d958b0903c96239b4d6&attachmentid=24812&d=1484229118&thumb=1)
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.