Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #391
    Sencha User
    Join Date
    Oct 2008
    Posts
    14
    Vote Rating
    0
    lakshmi is on a distinguished road

      0  

    Default States not getting saved

    States not getting saved


    Hi Saki,

    Thanks for the extension. I am using this in my application which contains a viewport and many tabpanels. Each tabpanel contains grid. The state is getting saved properly on each grid close event, column change etc. But when i close each tab(handles in grid's close event) fastly, some of the ajax requests are getting aborted or not sending. What I can do with this situation?

  2. #392
    Sencha User
    Join Date
    Dec 2010
    Location
    Aylesbury UK
    Posts
    6
    Vote Rating
    0
    lizucagirl is on a distinguished road

      0  

    Default


    I noticed that the process of setting 100 keys in my localStorage is very slow (especially in Firefox). And on a weak machine I even get 'Script takes too much time to respond'.

    I profiled it and looks like it takes 59 seconds to update 100 keys.
    softdial.stateProvider = new Ext.state.jStorageProvider();

    console.profile();

    for(var x=0; x<=10; x++){

    softdial.stateProvider.set('test'+x, x);
    }

    console.profileEnd();

    What can I do in respect of this issue?

  3. #393
    Touch Premium Member
    Join Date
    Aug 2009
    Posts
    28
    Vote Rating
    0
    weckmann is on a distinguished road

      0  

    Question How to reset initial state?

    How to reset initial state?


    Hi,
    We are using this great code for quiet some time now, but we have a problem which was already mentioned a few times in this thread, but i found no (working) solution:

    We are loading all states initially by calling initState. This works fine, everything is as it was saved in the DB.

    When you are inside the ExtJS application and modifing i.e. the sorting of a grid with a certain stateid it sends a request and stores the new sorting correctly to the db.
    The next time this user opens the app freshly, this saved state will be initially loaded. Fine.

    But when he does NOT reload the whole app, but just opens a new instance of this grid with the specified stateid, it will be loaded with the state initially coming from the DB, and not with the latest changes (which are by now already in the D.

    I've read that the problem here is to get the state before the rendering. (Therefore you should use the initState) So, my idea would be to somehow override these initial states in the same moment when they are being sent to the server for saving in the DB. But I'm not sure how or where exactly to do this.

    My guess would be the submitState function, here it could be done... no?
    How could i override/change the initial states, which are set during the initState function?

    Thanks for any hint!

  4. #394
    Sencha User
    Join Date
    Jan 2011
    Posts
    47
    Vote Rating
    0
    softm is on a distinguished road

      0  

    Default


    Just add this plugin (just 1 ajax loaded edited grid/ext3) & notice strange behaviour, in some cases.
    Sometimes it load saved columns positions, sometimes - no. In chrome it mostly works, in Firefox - mostly not loads (~10% of reloads - show saved previously columns orders/hidden state/etc).

    Seems its cause stored data is loaded after grid. And i know that author recommends use this inline in main html.
    i dont try this yet, cause have large system, and this will take me many time to redo this way, so am loading as :

    Code:
        var cp = new Ext.ux.state.HttpProvider(
            {
               url:'asset_tracker_grid.php?act=handle-state'
              ,user:'{/literal}{$active_user}{literal}'
              ,session:'Perseus.Stat'
              ,id:'1'
              ,readBaseParams:{cmd:'read_state'}
              ,saveBaseParams:{cmd:'save_state'}
              ,autoRead:false
              ,logFailure:true
              ,logSuccess:true
            }
        );
        Ext.state.Manager.setProvider( cp );
    
    
    
    
        $.post(
           "asset_tracker_grid.php?act=handle-state-get",
           {
           }, 
           function(ret) {
    
    
                Ext.state.Manager.getProvider().initState(ret.data); //[{"name":"client-mod-client-grid","value":"..."},{"name":"client-mod-win","value":"..."}]
           }, 
           'json'
        );
    But am interested, if this possible - to reload grid, with new state? I.e. somehow

    1. load state
    2. grid.redraw()

    with js, as ex, button pressed -> grid state reloaded.

    Or maybe is possible add state loading on some event of grid, i.e. before show all grid in page?

    Can your help me pls...

  5. #395
    Sencha User
    Join Date
    Jun 2012
    Location
    India
    Posts
    25
    Vote Rating
    2
    _sench_user is on a distinguished road

      0  

    Default Is it working for Lock/Unlock feature of the Grid?

    Is it working for Lock/Unlock feature of the Grid?


    Why State management is not working with Lock/Unlock feature of the Grid.

    1. Lock any of the column in the GRID.
    2. Reload the Grid.
    3. ExtJs internal error on console and GRID failed to load.

    Why StateManagement not supported for Lock and Unlock feature?