PDA

View Full Version : [CLOSED] ext:NumberField and ext:DateField: Add trigger



supera
May 02, 2012, 4:10 PM
Hi!

Itīs possible insert more on trigger (clear) in numberfield and datefield?

thanks for any help.

Daniil
May 02, 2012, 8:29 PM
Hi,

No problem with DateField.

Example

<ext:DateField runat="server">
<Triggers>
<ext:FieldTrigger Tag="trigger1" Icon="Clear" />
<ext:FieldTrigger Tag="trigger2" Icon="Ellipsis" />
</Triggers>
<Listeners>
<TriggerClick Handler="alert(tag);" />
</Listeners>
</ext:DateField>

But NumberField doesn't support additional triggers. If you need that you can implement your own NumberField basing on TriggerField. You will have additional tirggers, but no spinner.

supera
May 03, 2012, 8:54 PM
Ok... I got it!

Thanks a lot, Daniil