1. #11
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    I just implemented the bufferedrenderer. It really works great, this is a huge step forward! Grid scrolls nice and easy.

    Now just some layout issues with the fieldsets, hope these things get stable too.

    But, good job, that bufferedrenderer. Next step, put that thing default hidden the grid so you don't even have to configure it

  2. #12
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    401
    Vote Rating
    17
    Zdeno will become famous soon enough

      0  

    Default


    This does not work for me in 4.2.0 with:
    PHP Code:
    config.viewConfig = {
        
    markDirty false,
        
    emptyText 'strNoItems' 
    }; 

  3. #13
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You mean the markDirty config?

    Did it ever work?

    I see no code for handling it. Even though it is documented!

    This is a bug in that the reality does not match the config.

    Please create another thread for this which I can push into the Jira queue.

  4. #14
    Sencha User Stormseeker's Avatar
    Join Date
    Jan 2010
    Location
    Evanston, Illinois
    Posts
    55
    Vote Rating
    1
    Stormseeker is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    You mean the markDirty config?

    Did it ever work?
    .
    It worked in V4.1.1 at least. It used to be referenced in the Ext-grid-header-Container class in the prepareData() method which has been removed from V4.2.0 probably because of a re-factor to the class I would guess.

    Created a new thread for this: http://www.sencha.com/forum/showthread.php?253647

  5. #15
    Sencha Premium Member Tarabass's Avatar
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    18
    Vote Rating
    0
    Tarabass is on a distinguished road

      0  

    Default


    Thanks for your clear explanation! It took me some time to figure it all out, but now it seems to fall all into place. Maybe you can explain some more about what you said?

    Quote Originally Posted by dongryphon View Post
    Lookup
    Record lookup falls into 2 categories. The most likely use of lookup by record id is because of some action initiated by the user based on records they can see on the screen. Perhaps a row action or similar UI. Obviously, this would be important to support. The "risky" part is any other form of lookup. With a normal (unbuffered) store, a lookup can be performed to see if a record is present *anywhere* in the store.
    What is the best way to lookup records, and should I implement this? What we want is a grid with hunderdthousands of records but still be able to *for example* delete a record and select the previous record without loose scroll position
    Our plan here is to support lookup on a buffered store but if there is no match we will at a minimum issue a diagnostic message or perhaps throw an error back. The reason being that when a record is not in the page cache, that does not mean it is not "in the store" ... not in the 10M item sense. It means we don't know the answer to the membership question. If the record were being displayed somehow, then we would surely find it and all would be well.
    We are at 4.2.2 now. Is this already supported, and how do we implement it?
    Editing
    Many things get exciting during edit. If any set operations are in effect (sorting, grouping or filtering) an edit can completely invalidate the cache. Editing the right field could cause the first record to become the last.

    Because the page cache has never supported saving/syncing, this was always a hack in previous versions to get working. We will not be enforcing any checks here to prevent you from trying to edit a buffered store's content, but this is not supported.... still.
    When, when, when?

    Thanks in advance

  6. #16
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    muilas is on a distinguished road

      0  

    Default


    My little override in 4.2.2 for editing in buffered store
    PHP Code:
    Ext.override(Ext.data.PageMap, {
        
    filterBy : function(fnscope) {
            var 
    me this,
                
    result = {items:[]};
            
    me.forEach(function(recindex) {
                if (
    fn.call(scoperecindex)) {
                    
    result.items.push(rec);
                }
            });
            return 
    result;
        }
    }); 

  7. #17
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    marlic is on a distinguished road

      0  

    Default


    Thanks a lot muilas !

  8. #18
    Sencha User
    Join Date
    Jun 2012
    Posts
    3
    Vote Rating
    0
    amedeomantica is on a distinguished road

      0  

    Default How much you mean for HUGE dataset ?

    How much you mean for HUGE dataset ?


    How much you mean for HUGE dataset ?

    1K, 10K, 100K, 1M rows ?