Hybrid View

  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
    javajunkie is on a distinguished road

      0  

    Question ComboBox in EditableGrid; update of modelstore in EditableGrid

    ComboBox in EditableGrid; update of modelstore in EditableGrid


    I got some problems with synchronizing modeldata und view-data..

    I have an EditableGrid with some ComboBox columns.
    When a Comboboxes value is changed by the user it isnt propagated to the modelstore of the GridEditor.
    It takes another edit in another ComboBox.
    But then the following edit isnt propagated, and so forth.

    What i do is:
    I listen to changeSelection of each combobox, so get informed about changes.
    This is when I want to get the 'value' of myGrid using myGrid.getStore().getModels() for further processing.
    But this contains the old and not the new value.

    What i need is some kind of updateModel- or synchronize- method in an EditableGrid.
    Is there a way to do that?

  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


    I listen to changeSelection of each combobox, so get informed about changes.
    That is too early. Listen to the AfterEditor event of the editorgrid.

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    11
    Vote Rating
    0
    javajunkie is on a distinguished road

      0  

    Default


    THX.That did it.

Similar Threads

  1. EditableGrid with cellcontextmenu
    By MmarcoM in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Apr 2010, 5:42 AM
  2. Combobox Renderers Not working on EditableGrid Store Reload
    By Monk_18 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 25 Jun 2009, 7:22 AM
  3. Save EditableGrid
    By karan.kapur in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Apr 2009, 6:59 AM
  4. Blank combobox when typed over in editablegrid
    By extgwtdev in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 6 Apr 2009, 12:46 PM
  5. EditableGrid
    By CLink in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 27 Oct 2008, 10:33 PM

Thread Participants: 1

Tags for this Thread