Question on the form reset

  • It seems like use "form.reset()" will reset the form to the state when its renderer function is called. Is it possible to reset the form to a state after its renderer function is called? What's the Ext way to handle it? Thanks.


  • BasicForm has a trackResetOnLoad config option. From the doc:

    "If set to true, form.reset() resets to the last loaded or setValues() data instead of when the form was first created."

    Does this help?


  • @tryanDLS:
    I am pretty new to Ext Form. I was thinking maybe I can handle Ext Form in a way similar to Ext Grid, which has a data store on the backend: Using store.rejectChanges() will restore the grid to the state when the last store.commitChanges() is called. Is it possible for an Ext form? Is there an example which demonstrates how to couple Ext Form with Ext Data store? or is that even possible? Thanks.

    @rtannert2:
    Thanks for your information. I will definitely give it a try.


  • What are you trying to do? All the reset fn does is set all fields back to their original value and clear the invalid flag.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Question on the form reset , Please add it free.