[CLOSED] NumberField Arrows KeyPress

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] NumberField Arrows KeyPress

    Hi,

    With this code I avoid to show spinup and spindown buttons. But pressing up or down arrow numberfield change it's value with marked step.
    <ext:NumberField ID="txtValor" runat="server" FieldLabel="Some TExt" Step="2"
                        Width="140" Hidden="true" LabelAlign="Top" AllowDecimals="false" MinValue="0" HideTrigger="true" />
    I think it is another bug.
    Last edited by Daniil; Jul 12, 2012 at 1:18 PM. Reason: [CLOSED]
  2. #2
    It is not bug, you have to set ReadOnly="true" to prevent chages (please note that ReadOnly option will hide trigger buttons automatically)
  3. #3
    Quote Originally Posted by Vladimir View Post
    It is not bug, you have to set ReadOnly="true" to prevent chages (please note that ReadOnly option will hide trigger buttons automatically)
    Yes I know that readonly avoids user to write in field.
    But with the code that I indicate, you can write in the field and keymaps linked to spinner are working yet.

    I think that if I disable the trigger with HideTrigger="true", keymaps linked to spinner has to be disabled too.
  4. #4
    No, KeyMap should not be disabled automatically (it is very strange if KeyMap will be disabled if triggers are hidden).
    If you need such behaviour then you have to disable KeyMap manually (ReadOnly option is best option in this case)
  5. #5
    Just to clarify, Triggers and KeyMap are various ways to change a value
    If you disable one way then it doesn't mean that another way should not work

    Therefore if you don't need any changes then you have to set ReadOnly (which blocks user input)
  6. #6
    Yes but with readonly, user cannot write in the field.

    I will analize if it is really an issue for me. But I think it is an strange behaviour.
  7. #7
    You can set KeyNavEnabled="false" for the field

Similar Threads

  1. Replies: 2
    Last Post: May 21, 2012, 1:23 PM
  2. [CLOSED] don't works KeyPress
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2011, 9:29 AM
  3. [CLOSED] keypress event
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 18, 2011, 3:53 PM
  4. [CLOSED] [1.0] TreePanel Arrows
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 09, 2011, 12:11 PM
  5. [CLOSED] Change pages with arrows
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 17, 2009, 5:11 PM

Tags for this Thread

Posting Permissions