Results 1 to 3 of 3

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

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

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

    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 evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,984
    Vote Rating
    933
      0  
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

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

    Default

    Hi,

    I tried using Ext.getCmp('firstMYNumbFldAd').setMinvalue(2000);

    But this is not working Ext.getCmp('firstMYNumbFldAd') is returning undefined.

Posting Permissions

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