Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help with plug in - categoriestree

I want to use a plug in called categoriestree.ascx. By default the tree is expanded to show all levels. I want to show the tree collapsed by default.

I tried to modify treemenu.ascx by adding treemenu.CollapseAll. It doesn't work. How can I collapse a tree by default?

My code:

void Page_Load(object sender, System.EventArgs e)


NPBasePage bp = ((NPBasePage)Page);

if (!Page.IsPostBack)


treemenu.LinkBase = bp.VirtualPath;

treemenu.DataSource = NPCatalogCategory.GetCategoriesDataSet(bp.Catalog.CatalogID);





Not what you were looking for? View more on this topic or Ask a question