DxPivotGridListEditor.ComponentCaptured Event
Occurs after the underlying DevExpress.Blazor.PivotTable component is created for the current model and allows access to the component instance.
Namespace: DevExpress.ExpressApp.Blazor.Editors
Assembly: DevExpress.ExpressApp.Blazor.v26.1.dll
Declaration
Event Data
The ComponentCaptured event's data class is DevExpress.ExpressApp.Blazor.Editors.PivotGridCapturedEventArgs.
Remarks
A component model replicates parameters of the related component. You can use these parameters to configure the underlying component before creation. However, the model does not allow you to access the current component state or call its methods directly.
Handle the ComponentCaptured event to access underlying component instance and its full API.
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor.Editors;
public class CollapseAllRowsController : ViewController {
public class TestController : ViewController<ListView> {
protected override void OnViewControlsCreated() {
base.OnViewControlsCreated();
if (View.Editor is DxPivotGridListEditor editor) {
editor.ComponentCaptured += (s, e) => {
// Collapse every PivotGrig row
e.PivotGrid.CollapseAllRows();
};
}
}
}
}
See Also