# ScrollViewBuilder

## Properties

### WriteAction - Func

## Methods

### ContentHeight(System.Int32)

The height of the ScrollView content.

#### Parameters

##### value - `System.Int32`

The value that configures the content height.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### DataSource(System.Action)

Configure the DataSource of the component

#### Parameters

##### configurator - System.Action<[DataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourcebuilder)>

The action that configures the DataSource of the component.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### DataSource(System.String)

Sets the ID of the DataSource that will be used by the ScrollView.

#### Parameters

##### dataSourceId - `System.String`

The name of the DataSource.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### Items(System.Action)

Defines the items in the scrollview

#### Parameters

##### addAction - System.Action<[ScrollViewItemFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewitemfactory)>

The add action.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### ARIATemplate(System.String)

Specifies a template is used to populate an aria-live element that anounces which is the current item.

#### Parameters

##### value - `System.String`

The value for ARIATemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .ARIATemplate("aria-template")
            )
             
```

### ARIATemplateId(System.String)

Specifies a template is used to populate an aria-live element that anounces which is the current item.

#### Parameters

##### templateId - `System.String`

The ID of the template element for ARIATemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .ARIATemplateId("aria-templateId")
            )
             
```

### ARIATemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Specifies a template is used to populate an aria-live element that anounces which is the current item.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for ARIATemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .ARIATemplateView(new Microsoft.AspNetCore.Html.HtmlString("Viewing item #: data.Text # out of #: data.Total #")) 
            )
             
```

### ARIATemplateHandler(System.String)

Specifies a template is used to populate an aria-live element that anounces which is the current item.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for ARIATemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .ARIATemplateHandler("template-handler")
            )
             
```

### ARIATemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Specifies a template is used to populate an aria-live element that anounces which is the current item.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the ariatemplate.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### AutoBind(System.Boolean)

If set to false the widget will not bind to the DataSource during initialization.

#### Parameters

##### value - `System.Boolean`

The value for AutoBind

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .AutoBind(true)
            )
             
```

### BounceVelocityThreshold(System.Double)

The intensity of the swipe after which the swipe will result in a bounce effect when the user scrolls to the next page. Higher values require more accelerative swipe to notice the bounce effect when a page is changed.

#### Parameters

##### value - `System.Double`

The value for BounceVelocityThreshold

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .BounceVelocityThreshold(20) 
            )
             
```

### Duration(System.Double)

The duration (in milliseconds) for the ScrollView to snap to the current page after the user releases it.

#### Parameters

##### value - `System.Double`

The value for Duration

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .Duration(20)
            )
             
```

### EmptyTemplate(System.String)

The template for rendering the pages without content. By default, the ScrollView renders a blank page.

#### Parameters

##### value - `System.String`

The value for EmptyTemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .EmptyTemplate("empty-template") 
            )
             
```

### EmptyTemplateId(System.String)

The template for rendering the pages without content. By default, the ScrollView renders a blank page.

#### Parameters

##### templateId - `System.String`

The ID of the template element for EmptyTemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .EmptyTemplateId("empty-templateId") 
            )
             
```

### EmptyTemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The template for rendering the pages without content. By default, the ScrollView renders a blank page.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for EmptyTemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .EmptyTemplateView(new Microsoft.AspNetCore.Html.HtmlString("empty-template-view")) 
            )
             
```

### EmptyTemplateHandler(System.String)

The template for rendering the pages without content. By default, the ScrollView renders a blank page.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for EmptyTemplate

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .EmptyTemplateHandler("emptyTemplateHandler") 
            )
             
```

### EmptyTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

The template for rendering the pages without content. By default, the ScrollView renders a blank page.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the emptytemplate.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### EnablePager(System.Boolean)

If set to true, the ScrollView will display a pager. By default, the pager is enabled.

#### Parameters

##### value - `System.Boolean`

The value for EnablePager

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .EnablePager(false) 
            )
             
```

### Messages(System.Action)

Defines the messages that are set as aria-lables for the previous and next buttons.

#### Parameters

##### configurator - System.Action<[ScrollViewMessagesSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewmessagessettingsbuilder)>

The configurator for the messages setting.

#### RETURNS

Returns the current instance of [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) .

### Navigatable(System.Boolean)

If set to true enables the built-in keyboard navigation

#### Parameters

##### value - `System.Boolean`

The value for Navigatable

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .Navigatable()
            )
             
```

### Navigatable()

If set to true enables the built-in keyboard navigation

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .Navigatable()
            )
             
```

### Pageable(System.Action)

If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.

#### Parameters

##### configurator - System.Action<[ScrollViewPageableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewpageablesettingsbuilder)>

The configurator for the pageable setting.

#### RETURNS

Returns the current instance of [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) .

### Pageable()

If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.

#### RETURNS

Returns the current instance of [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) .

### Pageable(System.Boolean)

If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the pageable option.

#### RETURNS

Returns the current instance of [ScrollViewPageableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewpageablesettingsbuilder) .

### Page(System.Double)

The initial page that will be displayed.

#### Parameters

##### value - `System.Double`

The value for Page

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .Page(20)
            )
             
```

### PagerOverlay(System.String)

Sets an overlay background color for the pager. It can be configured to one of the three possible values: - none - no background overlay is set - dark - sets a dark-colored background overlay - light - sets a light-colored background overlay

#### Parameters

##### value - `System.String`

The value for PagerOverlay

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .PagerOverlay("page-overlay")
            )
             
```

### Template(System.String)

The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.

#### Parameters

##### value - `System.String`

The value for Template

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .Template("template")
            )
             
```

### TemplateId(System.String)

The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.

#### Parameters

##### templateId - `System.String`

The ID of the template element for Template

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .TemplateId("templateId")
            )
             
```

### TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for Template

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .TemplateView(new Microsoft.AspNetCore.Html.HtmlString("empty-template-view")) 
            )
             
```

### TemplateHandler(System.String)

The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for Template

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .TemplateHandler("template-handler") 
            )
             
```

### Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

The template for rendering the content of the pages. By default, the ScrollView renders a div element for every page.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the template.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

### VelocityThreshold(System.Double)

The length of the horizontal swipe after which a swipe will navigate to the next page - as opposed to snapping back to the current page. Higher values require long area swipes to navigate to the next page.

#### Parameters

##### value - `System.Double`

The value for VelocityThreshold

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .VelocityThreshold(20) 
            )
             
```

### ContentHeight(System.String)

The height of the ScrollView content.

#### Parameters

##### value - `System.String`

The value for ContentHeight

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                            .Name("scrollView")
                            .ContentHeight(20)
            )
             
```

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[ScrollViewEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollvieweventbuilder)>

The client events action.

#### RETURNS

Returns the current [ScrollViewBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/scrollviewbuilder) instance.

#### Example

```
 
            @(Html.Kendo().ScrollView()
                  .Name("ScrollView")
                  .Events(events => events
                      .Change("onChange")
                  )
            )
             
```

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Object`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
