在tabpanel中设置外部网络默认面板

时间:2018-05-14 14:07:11

标签: extjs

我有这段代码:

<ext:TabPanel ID="*" runat="server">
      <Items>
        <ext:Panel ID="panel1" runat="server" Title="*" Closable="false">
          <Loader ID="*" runat="server" Url="*.aspx" Mode="Frame">
            <LoadMask ShowMask="True" />
          </Loader>
        </ext:Panel>
          <ext:Panel ID="panel2" runat="server" Title="*" Closable="false">
          <Loader ID="*" runat="server" Url="*.aspx" Mode="Frame">
            <LoadMask ShowMask="True" />
          </Loader>
        </ext:Panel>
        <ext:Panel ID="panel3" runat="server" Title="*" Closable="false" Hidden="true">
          <Loader ID="Loader" runat="server" Url="*.aspx" Mode="Frame">
            <LoadMask ShowMask="True" />
          </Loader>
        </ext:Panel>
      </Items>
    </ext:TabPanel>

我需要将第一个面板设置为默认面板(加载页面时显示的面板)

1 个答案:

答案 0 :(得分:0)

就这样做:

<ext:TabPanel ID="*" ActiveIndex="0" runat="server">