Skip to main content
Tab

ASPxMenuBase.EnableCallBacks Property

Gets or sets a value that specifies how and when the menu’s submenu items are loaded.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool EnableCallBacks { get; set; }

Property Value

Type Default Description
Boolean false

true if submenu items are loaded dynamically via a callback request sent after the page is loaded into the browser; false if the submenu items are rendered into the page markup and loaded with the page.

Remarks

If the EnableCallBacks property is set to false, all submenu items of the menu control are rendered into the page and so they are loaded into the browser within the page. In this case, a great number of submenu items might increase the page size and affect the time it takes for the page to load into the browser.

To decrease the page size and make the page available to end-users in a shorter time, you can set the EnableCallBacks property to true. In this mode, only the root menu items are initially rendered into the page. The submenu items are loaded dynamically via a callback after the page has been loaded into the browser.

You can use the EnableCallBacks property together with the ASPxMenuBase.EnableCallbackCompression property to enhance the application performance.

See Also