Results 1 to 2 of 2

Thread: Setting the owner of a Container rendered to HTML

  1. #1
    Sencha User
    Join Date
    Mar 2014
    Posts
    6

    Default Setting the owner of a Container rendered to HTML

    Hi!

    I rendered an Ext.container.Container to a
    HTML Code:
    <div></div>
    that is part of a row expander row in my grid using:

    Code:
    myContainer.render(divElement);
    Question:
    How do I set the container's ownerCt to be the grid that the container was rendered to?

    Why I want to do that:
    I want to use the control-method im my controller to react to events of the various components that are members of my container.

    Can anyone give me pls a hint on how to achive that?
    Thank you in advance!

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585

    Default

    It depends on the version but assuming you're on 4.2...

    You don't need to set an ownerCt, that has other implications beyond the simple component query relationship you need.

    An owner-to-child relationship is established via the method getRefItems.

    A child-to-owner relationship is established via the method getRefOwner.

    See the source to understand how they work, then override as required.

Posting Permissions

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