Class FileMenuOpenCloseEventArgs
Provides information about the FileMenuOpening and FileMenuClosing events.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class FileMenuOpenCloseEventArgs
Constructors
FileMenuOpenCloseEventArgs()
Declaration
public FileMenuOpenCloseEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the file menu open or close action should be cancelled.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A bool indicating whether to cancel the open or close action. The default value is |
Remarks
Set this property to true to prevent the file menu from opening or closing.
This is useful for implementing custom validation, enforcing user permissions, or providing conditional menu access based on application state.
Items
Gets or sets the file menu items that are about to be displayed in the popup.
Declaration
public List<MenuItem> Items { get; set; }
Property Value
| Type | Description |
|---|---|
| List<MenuItem> | The collection of MenuItem entries that will be shown in the file menu. |
Remarks
This collection is dynamic.
ParentItem
Gets or sets the parent file menu item for submenu popups.
Declaration
public MenuItem ParentItem { get; set; }
Property Value
| Type | Description |
|---|---|
| MenuItem | The parent MenuItem when the popup represents a submenu; otherwise, null.
The default value is |
Remarks
This property is null when the event is triggered for the top-level file menu.
It contains the parent MenuItem reference when the event represents a submenu popup, allowing you to implement hierarchical menu logic or context-aware behaviors.
Use this property to determine the menu hierarchy and apply different customizations based on whether the event is for a top-level menu or a submenu.