Results 1 to 4 of 4

Thread: Need to set MIn & Max value for xType - numberField dynamically

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default Need to set MIn & Max value for xType - numberField dynamically

    Hi,

    I have a xtype: 'treecolumn' with column xtype (numberfield).

    {
    xtype: 'numbercolumn',
    header: 'PT-FirstMY',
    dataIndex: 'ptFirstModelYr',
    format: '0',
    headerWidth: 100,
    flex: 1,
    editor: {
    xtype : 'numberfield',
    id : 'firstMYNumbFldAd',
    allowBlank: false,
    maxValue: 9999,
    minValue: 1900
    }
    },
    I have to chaneg the maxVlaue and minValue dynamically through function. Kindly help me on this,.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    119
      0  

    Default

    Try to use <numField>.setMaxValue() & <numField>.setMinValue().

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default

    Hi,

    How to get this <numField>?

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    119
      0  

    Default

    <numField> is your number field. How to get it is depend on where do you want to access it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •