0

I can expand a TreeviewEx to a specific item with the below code, but any existing folders are collapsed.

How can I expand a folder without collapsing the existing expanded ones?

var datacontext = this.FindControl(treeviewEx.DataContext) as DataContext;
datacontext.SetFolder(item.Uri);
treeviewEx.SetSelectedItem(item);
treeviewEx.RefreshRoot();

Either from C# or JS would be fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.