DxTreeListEditor.TreeListComponentCaptured Event
In This Article
Provides access to the DxTreeList instance.
Namespace: DevExpress.ExpressApp.Blazor.Editors
Assembly: DevExpress.ExpressApp.Blazor.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Blazor
#Declaration
public event EventHandler<TreeListComponentCapturedEventArgs> TreeListComponentCaptured
#Event Data
The TreeListComponentCaptured event's data class is DevExpress.ExpressApp.Blazor.Editors.TreeListComponentCapturedEventArgs.
#Remarks
The TreeListComponentCaptured
event’s data class is DevExpress.ExpressApp.Blazor.Editors.TreeListComponentCapturedEventArgs
.
For an example of how to use TreeListComponentCaptured
, refer to the following code snippet:
C#
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor.Editors;
namespace MySolution.Blazor.Server.Controllers;
public class TestController : ViewController<ListView> {
protected override void OnViewControlsCreated() {
base.OnViewControlsCreated();
if(View.Editor is DxTreeListEditor editor) {
editor.TreeListComponentCaptured += (s, e) => {
e.TreeList.ExpandAll();
};
}
}
}
See Also