1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
    srisaravananwt is on a distinguished road

      0  

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

    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 - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,050
    Vote Rating
    657
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
    srisaravananwt is on a distinguished road

      0  

    Default


    Hi,

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

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

Thread Participants: 1