在juiceui AccordionPanel里面的DropDownList不要保持viewstate

时间:2014-02-16 23:13:28

标签: asp.net juice-ui

如标题所述。这是标记:

<asp:ScriptManager runat=server ID="sc1"></asp:ScriptManager>



    <juice:Accordion runat=server ViewStateMode=Enabled>
        <AccordionPanels>
            <juice:AccordionPanel runat=server Title=teste >
                <PanelContent>
                    <asp:DropDownList runat=server AutoPostBack=true>
                        <asp:ListItem>2014</asp:ListItem>
                        <asp:ListItem>2013</asp:ListItem>
                        <asp:ListItem>2012</asp:ListItem>
                    </asp:DropDownList>
                </PanelContent>
            </juice:AccordionPanel>
            <juice:AccordionPanel ID="AccordionPanel1" runat=server Title=teste234 EnableViewState=true ViewStateMode=Enabled >
                <PanelContent>
                    <asp:DropDownList ID="DropDownList2" runat=server AutoPostBack=true EnableViewState=true ViewStateMode=Enabled>
                        <asp:ListItem>2014</asp:ListItem>
                        <asp:ListItem>2013</asp:ListItem>
                        <asp:ListItem>2012</asp:ListItem>
                    </asp:DropDownList>
                </PanelContent>
            </juice:AccordionPanel>
        </AccordionPanels>
    </juice:Accordion>

A无法理解为什么。放置在Accordion外部同一页面上的任何DropDownList都按预期运行。

[2014-02-25更新]

遇到问题的解决方案DropDownList:https://dl.dropboxusercontent.com/u/18478143/JuiceUIDriveMeCrazy.zip

0 个答案:

没有答案