本文介绍了asp:Treeview在UpdatePanel中展开/折叠太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的树视图有1000个节点,当点击展开/折叠它需要大约20秒来展开/折叠

如何我可以改善树视图性能,保持EnableClientScript ='false'









my tree view having 1000 nodes when click on expand/collapse it take around 20 sec to expand/collapse
how i can improve tree view performance, keeping EnableClientScript='false'




<cc1:ToolkitScriptManager ID="tkScriptMgr"  runat="server">
</cc1:ToolkitScriptManager>
<asp:UpdatePanel ID="UPanel1" runat="server" UpdateMode="Always">
    <ContentTemplate>
        <table width="100%">
            <tr>
                <td>
                    <asp:TreeView ID="tvDtdHierarchy" runat="server" ShowLines="True" TabIndex="-1" EnableClientScript="false"
                        OnInit="tvDtdHierarchy_Init" OnLoad="tvDtdHierarchy_Load"
                        OnPreRender="tvDtdHierarchy_PreRender" OnTreeNodePopulate="tvDtdHierarchy_TreeNodePopulate"
                        OnDataBound="tvDtdHierarchy_DataBound"
                        Target="_Self">
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="True" ForeColor="#DD5555" />
                        <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>

推荐答案

这篇关于asp:Treeview在UpdatePanel中展开/折叠太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 16:31