Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: NestedList and TreeStore 2mb local file

  1. #11
    Sencha User xereta's Avatar
    Join Date
    Jul 2012
    Location
    Brazil
    Posts
    23
    Vote Rating
    0
      0  

    Default

    So, just to confir if I understand:
    I should have my NestedList in a store, with a sql proxy configurated to an websql.
    But when should the websql be populated from the json file?
    At start of the application?

  2. #12
    Sencha Premium Member
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    587
    Answers
    25
    Vote Rating
    88
      1  

    Default

    I'm not sure if NestedList will work; you may need to intervene programmatically a little more with this proxy, creating stores on the go with a remoteFilter set to the relevant parent ID.

    I'd start with a simple list example and go from there.

    I would populate the websql if it hasn't already been populated at the start of the application, yes.

    The main advantage to you is the remoteFilter/sort configs will operate on the database, so javascript won't have to hold the data in memory, and you can bring subsets of the data into javascript memory as you need to display them.
    I blog about Sencha Touch at www.senchatouchdev.com

Page 2 of 2 FirstFirst 12

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
  •