New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Constructors

C#
public ScrollView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContextinitializerIJavaScriptInitializerurlGeneratorIUrlGenerator

Properties

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

C#
public string ARIATemplate { get; set; }

The handler for the ARIATemplate

C#
public string ARIATemplateHandler { get; set; }

The id for the ARIATemplate

C#
public string ARIATemplateId { get; set; }

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

C#
public bool? AutoBind { get; set; }

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.

C#
public double? BounceVelocityThreshold { get; set; }

The height of the ScrollView content.

C#
public string ContentHeight { get; set; }
C#
public DataSource DataSource { get; }
C#
public string DataSourceId { get; set; }

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

C#
public double? Duration { get; set; }

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

C#
public string EmptyTemplate { get; set; }

The handler for the EmptyTemplate

C#
public string EmptyTemplateHandler { get; set; }

The id for the EmptyTemplate

C#
public string EmptyTemplateId { get; set; }

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

C#
public bool? EnablePager { get; set; }
C#
public List<ScrollViewItem> Items { get; }

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

C#
public ScrollViewMessagesSettings Messages { get; set; }

If set to true enables the built-in keyboard navigation

C#
public bool? Navigatable { get; set; }

The initial page that will be displayed.

C#
public double? Page { get; set; }

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.

C#
public ScrollViewPageableSettings Pageable { get; set; }

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

C#
public string PagerOverlay { get; set; }

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

C#
public string Template { get; set; }

The handler for the Template

C#
public string TemplateHandler { get; set; }

The id for the Template

C#
public string TemplateId { get; set; }
C#
public IUrlGenerator UrlGenerator { get; }

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.

C#
public double? VelocityThreshold { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)