DropDownList inside RegionPanel , onselectedindexchanged not trigger Event

May 14, 2010 at 3:48 AM
Edited May 14, 2010 at 3:50 AM

DropDownList ID="ddlrole" inside Region ID="regionTop" normal,

But inside Region ID="regionLeft"  onselectedindexchanged not trigger Event

搞不清楚什么问题?

<ext:RegionPanel ID="regionPanel" ShowBorder="false" runat="server">
        <Regions>
            <ext:Region ID="regionTop" Height="60px" ShowBorder="false" ShowHeader="false" Position="Top"
                Layout="Fit" runat="server" AutoScroll="True" AutoWidth="True">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" Position="Bottom" runat="server">
                        <Items>
                            <ext:ToolbarFill>
                            </ext:ToolbarFill>
                            <ext:Button ID="Button1" runat="server" Icon="Help" ToolTip="系統幫助" EnablePostBack="false"
                                OnClientClick="addTab('help', './admin/help.htm', '系統幫助')">
                            </ext:Button>
                            <ext:ToolbarSeparator>
                            </ext:ToolbarSeparator>
                            <ext:ToolbarText ID="ToolbarText3" Text="更換佈景" runat="server">
                            </ext:ToolbarText>
                            <ext:DropDownList ID="ddlTheme" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlTheme_SelectedIndexChanged"
                                runat="server">
                                <ext:ListItem Text="Blue" Selected="true" Value="blue" />
                                <ext:ListItem Text="Gray" Value="gray" />
                                <ext:ListItem Text="Access" Value="access" />
                            </ext:DropDownList>
                           
                            <ext:ToolbarSeparator>
                            </ext:ToolbarSeparator>


     <%--          <ext:ToolbarText ID="ToolbarText2" Text="更換角色" runat="server">
                       </ext:ToolbarText>
                       <ext:DropDownList ID="ddlrole" runat="server" AutoPostBack="True"
                         Width="100" onselectedindexchanged="ddlrole_SelectedIndexChanged">
                        </ext:DropDownList>--%>
                       
                        <ext:ToolbarSeparator>
                            </ext:ToolbarSeparator>
                            <ext:Button ID="btnExit" runat="server" Icon="UserRed" Text="退出系統" ConfirmText="確定退出系統?"
                                OnClick="btnExit_Click">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
                    <ext:ContentPanel ShowBorder="false" ShowHeader="false" BodyStyle="background-color:#1C3E7E;"
                        ID="ContentPanel1" runat="server">
                        <div style="font-size: 20px; color:White; font-weight:bold; padding: 5px 10px; ">
                            <a href="./main.aspx" style="color:White;"><%= AppBox.XConfigHelper.Title %></a>
                        </div>
                    </ext:ContentPanel>
                </Items>
            </ext:Region>
            <ext:Region ID="regionLeft" Split="true" EnableSplitTip="true" CollapseMode="Mini"
                Icon="Outline" EnableCollapse="false" EnableLargeHeader="false" Width="200px"
                Margins="0 0 0 0" ShowHeader="true" Title="系統菜單" Layout="Fit" Position="Left"
                runat="server">
                <Toolbars>
                 <ext:Toolbar ID="Toolbar2" Position="Top" runat="server">
                    <items>
                       <ext:ToolbarText ID="ToolbarText2" Text="更換角色" runat="server">
                       </ext:ToolbarText>
                       <ext:DropDownList ID="ddlrole" runat="server" AutoPostBack="True"
                         Width="100" onselectedindexchanged="ddlrole_SelectedIndexChanged">
                        </ext:DropDownList>
                    </items>
                </ext:Toolbar>
               </Toolbars>
            </ext:Region>
            <ext:Region ID="mainRegion" ShowHeader="false" Layout="Fit" Margins="0 0 0 0" Position="Center"
                runat="server">
                <Items>
                    <ext:TabStrip ID="mainTabStrip" EnableTabCloseMenu="true" ShowBorder="false" runat="server">
                        <Tabs>
                            <ext:Tab ID="Tab1" Title="首頁" EnableIFrame="true" IFrameUrl="~/admin/default.aspx"
                                Icon="House" runat="server">
                            </ext:Tab>
                        </Tabs>
                    </ext:TabStrip>
                </Items>
            </ext:Region>
        </Regions>
    </ext:RegionPanel>