PDA

View Full Version : [CLOSED] How to show DateField Year Only?



opacjkt
Jun 23, 2015, 6:23 AM
Iam using:

<ext:DateField runat="server" ID="DateField1" Format="Y">
<Plugins>
<ext:MonthPicker runat="server" />
</Plugins>
</ext:DateField>


but have error result:


Ext.Net.ItemsCollection`1[[Ext.Net.Plugin, Ext.Net, Version=2.5.3.31210, Culture=neutral, PublicKeyToken=2e12ce3d0176cd87]] must have items of type 'Ext.Net.Plugin'. 'ext:MonthPicker' is of type 'Ext.Net.MonthPicker'.

How to Fix it?

Daniil
Jun 23, 2015, 6:24 PM
Hi @opacjkt,

Please use:

<ext:DateField runat="server" Type="Month" Format="Y" />