How to reduce the amount of code that is generated by the TreeView?
Our goal has been to keep the size of the generated code at a minimum for the sake of a fast Internet communication. As a result of our efforts, the average code size including the scripts, HTML, cascading style sheets, etc. related to the APNSoft TreeView is in the range of 10-15K only.
But here are our recommendations how to reduce the result code.
TreeView uses a new AJAX-based feature, which allows you to load child nodes on demand without PostBack to the server. TreeView automatically checks loaded data in order to avoid extra requests. Set the LoadOnDemand property value to True to enable this feature.
By default, control takes CSS Style from the Skin Folder, adds unique prefix to classes and spits out complete style code into the page. You can add this CSS Style to the page by using the <link> element inside the <head> section. The browser will use the cached version of the CSS file, saving you about 10 kb per request. Do the following: