Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Dynamic change of SectionStackSection.setControls

    1. SmartClient Version: v9.0p_2013-08-06/LGPL Development Only (built 2013-08-06)

    2. IE 9.0.8112.16421

    3. Non-server issue

    5. No JavaScript error

    6. sample code: attached. Clicking the button at the bottom of the window in the example will attempt to change the controls.

    I am trying to change the set of controls on the right of a section stack section header based upon user selection with another part of my UI. The setControls method does not appear to do anything after the section stack is drawn. There is no mention of this in the documentation for this method. Is this a defect or expected behavior? If it's expected, what is the recommended way to change the set of controls on the header?
    Attached Files

    #2
    Provide the controls as a Layout and hold onto a reference to it. You can then show or hide controls within the Layout.

    Comment


      #3
      If you cannot set this after the controls are drawn, maybe the documentation should mention that.

      Comment


        #4
        Good point. We've updated the documentation to make this clearer.

        Comment

        Working...
        X