Jul 28, 2011, 9:41 PM
[CLOSED] Format Date in Custom Drop Down List
I have the following custom drop down list based on your example;
I tried setting the DateFormat of the EndDate RecordField, but that didn't work.
thanks
<ext:Store ID="Store1" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="EngagementID" />
<ext:RecordField Name="Engagement" />
<ext:RecordField Name="EndDate" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
<ext:ComboBox
ID="ComboBox1"
runat="server"
StoreID="Store1"
Width="250"
Editable="false"
DisplayField="Engagement"
ValueField="EngagementID"
TypeAhead="true"
Mode="Local"
ForceSelection="true"
TriggerAction="All"
ItemSelector="div.list-item"
SelectOnFocus="true">
<Template runat="server">
<Html>
<tpl for=".">
<div class="list-item">
<h3>{Engagement}</h3>
{EndDate}
</div>
</tpl>
</Html>
</Template>
</ext:ComboBox>
How do I set the format of the EndDate to say 'MM/dd/yy' in the dropdown?I tried setting the DateFormat of the EndDate RecordField, but that didn't work.
thanks
Last edited by Daniil; Jul 29, 2011 at 1:33 PM.
Reason: [CLOSED]