Results 1 to 4 of 4

Thread: What modifies Ext.data.GroupingStore "lastOptions" property?

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default What modifies Ext.data.GroupingStore "lastOptions" property?

    Hi,

    I am using a GroupingStore in my application and the property "lastOptions" is giving me a fit. I could not understand what it is used for using the API documentation so a simpler explanation will surely help.
    How and when does it get modified?
    When I do groupingStore.load() , the lastOptions gets some value and is no longer null. However, on doing groupingStore.loadData(someJsonData) , the lastOptions value is not set and returns "null". Is this expected behavior or a bug? How can i cause lastOptions to be modified on calling loadData()?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    The load method of Ext.data.Store when it executes the storeOptions method.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Thanks Mitchell..bt does the loadData() method also do the same??
    I have a case where lastOptions is not being set on loading data by calling store.loadData(mydata) and so want to know if this is expected behavior or a bug

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    You don't have options when you use loadData. You are basically just inserting data.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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