1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    9
    Vote Rating
    0
    adisharoon is on a distinguished road

      0  

    Default Answered: How to get a specific editor component from a grid?

    Answered: How to get a specific editor component from a grid?


    I have a grid that rows will be added to. One of the columns is editable with a ComboBox. I want to set the store of that ComboBox when the row is added to the grid. I can't seem to figure out how to get a reference to the ComboBox. What path do I have to traverse?

    Currently I am trying to make this happen in a listener for the grid's tableview's itemadd event. The problem is that that event only passes the row's node, not a component.

    Another idea is the ComboBox's configuration in the columns of the grid's configuration. But I can't figure out how to get a reference to the record being added from there.

    Alec

  2. grid.editingPlugin.editor is the form

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,329
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    grid.editingPlugin.editor is the form
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    9
    Vote Rating
    0
    adisharoon is on a distinguished road

      0  

    Default


    Turns out it's actually grid.editingPlugin.editors (plural), but that did the trick. Thanks.

    Alec

Thread Participants: 1