Hybrid View

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    3
    Vote Rating
    0
    TMAPRICER is on a distinguished road

      0  

    Default Working with LiveGridView + EditorGrid

    Working with LiveGridView + EditorGrid


    Hi,

    Is it possible to use LiveGridView with an editorGrid ? I've a grid with huge data. That's why i'm using LiveGridView, but i would like to edit my data too.

    When i'm using LiveGridView + Grid => There is no problem.
    When i'm using EditorGrid => There is no problem.
    But when i'm using EditorGrid + LiveGridView it's seams incompatible.

    So my question is : Can i use EditorGrid with LiveGridView or not ? If not, will I be able to with the next release ?

    Thx a lot.

    TMAPRICER

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Its partly compatible, some things are fixed. The main problem will be as soon as you scroll, the changes get lost. LiveGridView is a "live" streaming view which was not designed for client modifications.

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Posts
    3
    Vote Rating
    0
    TMAPRICER is on a distinguished road

      0  

    Default


    Thank for your fast answer.

    That's what i thought. Thus, there is no good solution to edit a large amount of data without pagination ?

    When you said
    Its partly compatible, some things are fixed.
    Does it means that GXT's team are working on this and one day LiveGridView will be able to be compatible with EditorGrid ?

  4. #4
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Not completly. Scrolling a model out will still make the changes get lost if not persisted somewhere else.

  5. #5
    Sencha User
    Join Date
    Nov 2010
    Posts
    90
    Vote Rating
    0
    atrubka is on a distinguished road

      0  

    Default


    In my use case the reason for using LiveGridView is UI rendering performance. This means I can keep all data on the client. In this case EditorGrid with LiveGridView is working fine.

    You have to have a wrapping store, which loads through loader/proxy from a local underlying data structure. You have to ensure that any insertions or deletions are done on that underlying data structure and then store is reloaded via loader.load(). If you keep ModelData instances in the underlying structure, then any edits are stored in them just like with a regular EditorGrid.

    Hope that helps

Similar Threads

  1. Can't get forceSelection:false working in an EditorGrid
    By technicaltitch in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 8 May 2009, 11:57 AM
  2. EditorGrid - working example (php/postgres backend)
    By tonig84 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Feb 2008, 8:38 AM
  3. Shift-Tab not working in EditorGrid
    By umlbuzzard in forum Ext 1.x: Bugs
    Replies: 0
    Last Post: 1 May 2007, 9:35 AM

Thread Participants: 2