PDA

View Full Version : [CLOSED] [Razor] NumberField hide spin images



boris
May 10, 2012, 12:11 PM
Hi, is any method (property) to hide spin images on NumberField?


Html.X().NumberField().ID("NumberFieldKolicinaStavka").DecimalPrecision(10).Cls("text-right")...

I try this:


.SpinDownEnabled(false).SpinUpEnabled(false)

but nothing happens...

(In old ext.net version this images don't exists.)

Daniil
May 10, 2012, 1:01 PM
Hi,

I can suggest the following way to hide the spinners.

Example

<ext:NumberField runat="server">
<Listeners>
<Render Handler="this.spinDownEl.hide();
this.spinUpEl.hide();" />
</Listeners>
</ext:NumberField>

Daniil
May 10, 2012, 1:43 PM
I forgot about the HideTrigger property. Please just set up it to true.

HideTrigger="true"

boris
May 10, 2012, 2:12 PM
Thanks, it works.