MenuBuilder.AdaptivityEnabled(Boolean) Method
In This Article
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
C#
public MenuBuilder AdaptivityEnabled(
bool value
)
#Parameters
Name | Type | Description |
---|---|---|
value | Boolean | The option value. |
#Returns
Type | Description |
---|---|
Menu |
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