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,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi