Back to Devexpress

SortableBuilder.ScrollSpeed(JS) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-sortablebuilder-dot-scrollspeed-x28-devextreme-dot-aspnet-dot-mvc-dot-js-x29.md

latest1.5 KB
Original Source

SortableBuilder.ScrollSpeed(JS) Method

Specifies the scrolling speed when dragging an item beyond the viewport. Applies only if autoScroll is true. Mirrors the client-side scrollSpeed option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SortableBuilder ScrollSpeed(
    JS value
)

Parameters

NameTypeDescription
valueJS

A JavaScript expression that specifies the option value.

|

Returns

TypeDescription
SortableBuilder

A reference to this instance after the method is called.

|

Remarks

Use the new JS() expression to set the option’s value.

cshtml
<script>
    var myValue = ...;
</script>

@(Html.DevExtreme().Sortable()
    .ScrollSpeed(new JS("myValue"))
)

See Also

SortableBuilder Class

SortableBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace