May 13, 2013, 2:01 PM
[CLOSED] Binding formatted datetime
I have big trouble binding date in specific format.For ex.
None of the listeners I have tried helped me moreover format property of Displayfiled is not working or it is not dedicated for this task.What is elegant way to bind Date type with appropriate format?
<ext:Store runat="server" ID="store12345">
<Model>
<ext:ModelField Name="LASTCHANGEDATE" Type ="Date" DateFormat ="M$" > </ext:ModelField>
</Model>
<Proxy>
<ext:AjaxProxy Url=".someWebService.asmx/someMethod" Json="true">
<ActionMethods Read="POST">
</ActionMethods>
<Reader>
<ext:JsonReader Root="d.data" TotalProperty="d.total">
</ext:JsonReader>
</Reader>
</ext:AjaxProxy>
</Proxy>
</ext:store>
<ext:DisplayField runat="server" ID="lblStateLastChanged" Name="LASTCHANGEDATE"
FieldLabel="Sate Changed On" LabelWidth="150" >
<Listeners>
<%-- <AfterRender Fn ="testRenderer" ></AfterRender>--%>
<%-- <Change Fn = "testRenderer"></Change>--%>
<%-- <BoxReady Fn = "testRenderer" >
</BoxReady>--%>
</Listeners>
</ext:DisplayField>
Store loads correctly and the date values are parsed correctly.None of the listeners I have tried helped me moreover format property of Displayfiled is not working or it is not dedicated for this task.What is elegant way to bind Date type with appropriate format?
Last edited by Daniil; May 14, 2013 at 6:32 AM.
Reason: [CLOSED]