Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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'




ASP
<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>
Posted
Updated 31-Jul-14 18:11pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900