1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    jay-bee is on a distinguished road

      0  

    Default Infinite Grid Scrolling

    Infinite Grid Scrolling


    Hi

    I might be missing something obvious here but is there a way to create an Infinite Scrolling Grid through the designer?

    Any help appreciated.

    Many thanks

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,359
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    You can set the required configurations of verticalScrollerType and invalidateScrollerOnRefresh via quickset.

    These currently are not in the property grid but look for coming support.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    3
    Vote Rating
    0
    jay-bee is on a distinguished road

      0  

    Default


    Thanks for replying.

    I think I get what you mean so I'll give it a try.

    thanks

  4. #4
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    73
    Vote Rating
    0
    Peter Tierney is on a distinguished road

      0  

    Default


    Seems like a cryptic answer. What is quickset and how is it used? A more straight forward answer would be helpful.

  5. #5
    Sencha User filippo.ferrari's Avatar
    Join Date
    Apr 2010
    Location
    Sanremo - Italy
    Posts
    126
    Vote Rating
    1
    filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute

      0  

    Default


    "quickset" is the ability to add custom configuration property to a class.

    You can write eg. "verticalScrollerType" in the search box in the config panel. if "verticalScrollerType" is a property managed by architect you can setup your value.

    If you have no results means actually Architect can only add it as a custom property, you must click "Add" and then choose a type of property (Array, Boolean, Number) with a click on the icon on the left of your new "verticalScrollerType" config option.

    Now yo can setup a value for your custom option.

  6. #6
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    73
    Vote Rating
    0
    Peter Tierney is on a distinguished road

      0  

    Default


    Thanks. Didn't realize that was called "quickset". Works just as you stated.

  7. #7
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    73
    Vote Rating
    0
    Peter Tierney is on a distinguished road

      0  

    Default


    Here is a helpful note for others if they come across this in the future.

    Be sure the store's response totalProperty is populated with the count of the entire record set and not just the count of the returned subset. It won't scroll without the ability to calculate how many pages in total are in the complete record set.

    ie. If total record set is 10000 records, totalProperty = 10000 not 200 returned in the paged data set.

  8. #8
    Sencha User filippo.ferrari's Avatar
    Join Date
    Apr 2010
    Location
    Sanremo - Italy
    Posts
    126
    Vote Rating
    1
    filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute filippo.ferrari has a reputation beyond repute

      0  

    Default


    Confirm!

    Serverside I perform 2 queries:

    A query with "count()" not limited to send back the total of records
    A query with the data set I need to send back records

    Both shares the where part.

  9. #9
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    73
    Vote Rating
    0
    Peter Tierney is on a distinguished road

      0  

    Default


    That's the way I am doing it, but I'm not fond of the idea of always having to do a count even when paging with no criteria change. I will probably play with the idea of having a separate AJAX call for the count that only gets called when criteria is changed. While the count in my prototype only takes 0.052 seconds, if I can only have that once every 10 requests, the total time is much smaller and should scale better.

    This is all assuming the ability to populate the total count separate from the response of the paging requests.