1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    Thomas233 is on a distinguished road

      0  

    Default GrdPanel looses view on reconfigure

    GrdPanel looses view on reconfigure


    Hello,

    if I reconfigure a GridPanel calling
    Code:
    grid.reconfigure(newStore,columnModel);
    and bind it to a new store, it looses it`s view property.

    How can i reconfigure the grid without loosing it`s view (i`ve defined a headerrow there, to perform custom filtering logic) and without creating a new grid (lot of overhead).

    Please help me !

    Thanks !

    Thomas

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

      0  

    Default


    The whole point is that it's a totally different Store and ColumnModel. Different data structure, fields etc.

    If its the same data structure, just new data, then just reload the Store.

  3. #3
    Ext User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    Thomas233 is on a distinguished road

      0  

    Default


    Hi animal,

    the new store is just like a copy of the old one with the same data structure and so on. I just need it to workaround the filterBy problematic with grindpanel and paging toolbar.

    Thanks !

    Thomas

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

      0  

    Default


    So you could just reload the same Store with new data?

    I'm not sure what you are really doing.

  5. #5
    Ext User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    Thomas233 is on a distinguished road

      0  

    Default


    Hi animal,

    i try to workaround the problem i`ve described here:
    http://extjs.com/forum/showthread.php?t=76549

    My approach is to create a copy of an existing store which holds only the filtered records while the original store holds all records every time and then assign the copied store to the grid (so the paging toolbar gets refreshed as it needs to). I really need a very quick solution, because i do not have enough time to implement a complex one now.

    Thanks !

    Thomas

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

      0  

    Default


    Store filtering offers this.

    You can filter a Store, and the Grid will update itself.

    clear the filter and the Grid will update back.

  7. #7
    Ext User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    Thomas233 is on a distinguished road

      0  

    Default


    Hi animal,

    wow what a fast reply. Thanks ;-)

    However, i`m already using store filtering by calling
    Code:
    store.filterBy()
    The grid gets filtered correctly, but the problem is that the paging toolbar isn`t refreshing correctly (records are filtered on each page and do not get swapped to the first page).

    Btw i can only filter the data locally.

    Thanks !

    Thomas

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

      0  

    Default


    You are using paging from the server?

    And you filter locally to make the current page smaller?

    Am I following right?

  9. #9
    Ext User
    Join Date
    Mar 2009
    Posts
    10
    Vote Rating
    0
    Thomas233 is on a distinguished road

      0  

    Default


    I am getting a whole bunch of data initially from the server, but then only filter it locally (such as surname and so on).

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

      0  

    Default


    So you are not paging, you have all the data in one shot?

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar