Results 1 to 3 of 3

Thread: Overrides to the configs of a Ext.data.Store

  1. #1
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    303
    Answers
    2
    Vote Rating
    1
      0  

    Default Answered: Overrides to the configs of a Ext.data.Store

    If I wanted to override the defaults for all the Ext.data.Stores that get created in my app, can I do something like the following:
    Code:
    Ext.data.Store.autoDestroy=true;
    		Ext.data.Store.autoAbort=true;
    No longer a Newbie

  2. You need to do that on the prototype

    Code:
    Ext.data.Store.prototype.autoDestroy = true;

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    You need to do that on the prototype

    Code:
    Ext.data.Store.prototype.autoDestroy = true;
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    303
    Answers
    2
    Vote Rating
    1
      0  

    Default

    Excellent, and as always thanks for the solution!
    No longer a Newbie

Posting Permissions

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