change the layout of a panel dynamically

  1. #1

    change the layout of a panel dynamically

    Hi
    I wish to change the layout of a panel( dynamically) based on a combo box list (listing different layout types).

    I call a Javascript function on the select handler of the combobox.

    <script type="text/javascript">
    var setLayout = function (index) {

    if (index == 1) {

    #{pWizardContent}.setLayout(Ext.panel.LayoutType.V BoxLayout);
    // #{pWizardContent}.Layout='VBoxLayout';
    // #{pWizardContent}.LayoutConfig.Add(new VBoxLayoutConfig { Pack = BoxPack.Start, Align = VBoxAlign.Stretch });
    }
    if (index == 2) {

    //set another layout
    }

    }
    </script>

    This does not work. Please provide some samples for this , the panel needs to be with all the same Components, but include the ability to change the .Layout and re-render.
    Last edited by Girija; Mar 26, 2015 at 6:05 PM.
  2. #2
    Hi
    Any updates on this post. I am looking for some examples.

Similar Threads

  1. How to change the Panel Title dynamically
    By _xpto in forum 1.x Help
    Replies: 3
    Last Post: Sep 06, 2012, 6:58 PM
  2. [CLOSED] Trying to dynamically change grid panel columns.
    By GLD in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 29, 2011, 8:41 AM
  3. Replies: 0
    Last Post: Oct 17, 2010, 3:20 PM
  4. [CLOSED] Change Node Name dynamically in tree panel
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 29, 2009, 10:49 AM
  5. Replies: 2
    Last Post: Feb 19, 2009, 2:02 PM

Posting Permissions