categoryModel.IsExpanded doesn't work

Posted 1 month ago by Avatar Antoine Picard

Hi !

I wanted to have all my categories collapsed by default so I tried something like

protected override ICategoryModel CreateCategoryModel(string name, IDataFactoryRequest request)
 var categoryModel = base.CreateCategoryModel(name, request);
 categoryModel.IsExpanded = false;
 return categoryModel;

 in my dataFactory, but it doesn't work.

What do I do wrong ?

Comments (1)

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA

Hi Antoine,

The PropertyGrid.AreCategoriesAutoExpanded property defaults to true.  When true, it will auto-expand categories after you create them.  You'd want to set that property to false if you want them collapsed.  Then you could remove your code above.

Actipro Software Support
Information The latest build of this product (2018.1 build 0674) was released 4 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.