Skip to main content

MenuBuilder.AdaptivityEnabled(Boolean) Method

Specifies whether adaptive rendering is enabled. This property is in effect only if the orientation is 'horizontal'. Mirrors the client-side adaptivityEnabled option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public MenuBuilder AdaptivityEnabled(
    bool value
)

Parameters

Name Type Description
value Boolean

The option value.

Returns

Type Description
MenuBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().Menu()
    .AdaptivityEnabled(true)
)
See Also