Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    9
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1368
      0  

    Default

    grid.editingPlugin.editor is the form
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    9
    Vote Rating
    0
      0  

    Default

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

    Alec

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •