1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    107
    Vote Rating
    0
    marman is on a distinguished road

      0  

    Default GXT 1.5.4 - Grid to Form Binding

    GXT 1.5.4 - Grid to Form Binding


    Is it possible to use a FormBinding from a Grid and have it *only* update the grid when I click a button rather than update after I click off a field?

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    48
    Vote Rating
    0
    Webflash is on a distinguished road

      0  

    Default


    Quote Originally Posted by marman View Post
    Is it possible to use a FormBinding from a Grid and have it *only* update the grid when I click a button rather than update after I click off a field?
    No :-(
    I need this functioonality to :-)

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    107
    Vote Rating
    0
    marman is on a distinguished road

      0  

    Default


    I worked around it....

    basically, i do not bind the Store to the form. I call update or delete on the store object and then do a manual refresh of the GridView class. this seems to be working for me.

  4. #4
    Ext User
    Join Date
    May 2009
    Posts
    12
    Vote Rating
    0
    kaeptn is on a distinguished road

      0  

    Default


    Could you please post sample code? I have a similar problem and since I am rathe rnew I really would appreciate a heads up ...

    TIA

  5. #5
    Sencha User
    Join Date
    Feb 2009
    Posts
    107
    Vote Rating
    0
    marman is on a distinguished road

      0  

    Default


    Quote Originally Posted by kaeptn View Post
    Could you please post sample code? I have a similar problem and since I am rathe rnew I really would appreciate a heads up ...

    TIA


    Code:
    		
    
    grid.getStore().update( formPanel.getAccountVO() );
    grid.getView().refresh( false );

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,639
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    Not to ask you to write this for me , but what about the converse, updating the original model object when the grid changes?

    Thanks for sharing!

  7. #7
    Ext User
    Join Date
    May 2009
    Posts
    12
    Vote Rating
    0
    kaeptn is on a distinguished road

      0  

    Default


    Quote Originally Posted by marman View Post
    Code:
            
    
    grid.getStore().update( formPanel.getAccountVO() );
    grid.getView().refresh( false );
    Cool ... thanks for that ... what does the getAccountVO method look like? And where do I find store.update() method in the documentation? How did you know it is there?

    Thanks ... I'll try that way ...

    EDIT
    ... forget that ... update() is not available to a store in ExtJS ... I overlooked that you are using GXT and now that I know these are different I have to search again foir my problem ... thanks anyways ...
    /EDIT

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