Back to Devexpress

SortableBuilder.ItemOrientation(Orientation) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-sortablebuilder-dot-itemorientation-x28-devextreme-dot-aspnet-dot-mvc-dot-orientation-x29.md

latest1.3 KB
Original Source

SortableBuilder.ItemOrientation(Orientation) Method

Notifies the UI component of the items' orientation. Mirrors the client-side itemOrientation option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SortableBuilder ItemOrientation(
    Orientation value
)

Parameters

NameTypeDescription
valueOrientation

The option value.

|

Returns

TypeDescription
SortableBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().Sortable()
    .ItemOrientation(Orientation.Horizontal)
)

See Also

SortableBuilder Class

SortableBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace