1. #1
    Sencha User
    Join Date
    Oct 2008
    Posts
    25
    Vote Rating
    0
    BlazeCrystal is on a distinguished road

      0  

    Default is formpanel's 'render' method necessary after 'add' method??

    is formpanel's 'render' method necessary after 'add' method??


    Code:
    Ext.getCmp('testBean').add(new Ext.form.TextField({id:'vvxname', width:200, fieldLabel:'vvxname'}))
    after this code , should i use
    Code:
    Ext.getCmp('testBean').render('form')
    and is this necessary??

    if not , is there any other method?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    No, DON'T call render!

    Use:
    Code:
    Ext.getCmp('testBean').doLayout();

Thread Participants: 1