New to Telerik UI for ASP.NET Core? Download free 30-day trial

MobileScrollViewBuilder

Methods

AutoBind(System.Boolean)

If set to false the widget will not bind to the DataSource during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the DataSource specified in the configuration.Applicable only in data bound mode.

Parameters

value - System.Boolean

The value that configures the autobind.

BounceVelocityThreshold(System.Double)

The velocity threshold after which a swipe will result in a bounce effect.

Parameters

value - System.Double

The value that configures the bouncevelocitythreshold.

Duration(System.Int32)

The milliseconds that take the ScrollView to snap to the current page after released.

Parameters

value - System.Int32

The value that configures the duration.

EmptyTemplateId(System.String)

The template which is used to render the pages without content. By default the ScrollView renders a blank page.Applicable only in data bound mode.

Parameters

value - System.String

The value that configures the emptytemplateid.

EnablePager(System.Boolean)

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

Parameters

value - System.Boolean

The value that configures the enablepager.

ItemsPerPage(System.Int32)

Determines how many data items will be passed to the page template.Applicable only in data bound mode.

Parameters

value - System.Int32

The value that configures the itemsperpage.

Page(System.Int32)

The initial page to display.

Parameters

value - System.Int32

The value that configures the page.

PageSize(System.Double)

Multiplier applied to the snap amount of the ScrollView. By default, the widget scrolls to the next screen when swipe. If the pageSize property is set to 0.5, the ScrollView will scroll by half of the widget width.Not applicable in data bound mode.

Parameters

value - System.Double

The value that configures the pagesize.

TemplateId(System.String)

The template which is used to render the content of pages. By default the ScrollView renders a div element for every page.Applicable only in data bound mode.

Parameters

value - System.String

The value that configures the templateid.

VelocityThreshold(System.Double)

The velocity threshold after which a swipe will navigate to the next page (as opposed to snapping back to the current page).

Parameters

value - System.Double

The value that configures the velocitythreshold.

ItemTagName(System.String)

Specifies the tag name of the item element. By default it will be div element

Parameters

value - System.String

The value that configures the itemtagname.

FitItemPerPage(System.Boolean)

Specifies whether exactly one item per page must be shown

Parameters

value - System.Boolean

The value that configures the fititemperpage.

ContentHeight(System.String)

The height of the ScrollView content.

Parameters

value - System.String

The value that configures the contentheight.

Items(System.Action)

Contains the items of the ScrollView widget

Parameters

configurator - System.Action<MobileScrollViewItemFactory>

The action that configures the items.

ContentHeight(System.Int32)

The height of the ScrollView content.

Parameters

value - System.Int32

The value that configures the contentheight.

DataSource(System.Action)

Instance of DataSource or the data that the mobile ScrollView will be bound to.

Parameters

configurator - System.Action<ReadOnlyDataSourceBuilder>

The value that configures the datasource.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<MobileScrollViewEventBuilder>

The client events action.

Example


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

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

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)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

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

AsChildComponent()

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?