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

Kendo UI ScrollView component

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ScrollView : WidgetBase, IHtmlAttributesContainer, INavigationItemComponent<ScrollViewItem>, INavigationItemContainer<ScrollViewItem>

Inheritance: objectWidgetBaseScrollView

Implements: IHtmlAttributesContainerINavigationItemComponent<ScrollViewItem>INavigationItemContainer<ScrollViewItem>

Inherited Members WidgetBase.Render()WidgetBase.ToClientTemplate()WidgetBase.ToHtmlString()WidgetBase.VerifySettings()WidgetBase.WriteDeferredStyles(TextWriter)WidgetBase.DeferStyles()WidgetBase.ProcessSettings()WidgetBase.GetHtml(bool)WidgetBase.GetInitializator()WidgetBase.RenderHtml(TextWriter)WidgetBase.GetElement()WidgetBase.WriteLicensingScript(TextWriter)WidgetBase.WriteMvvmHtml(TextWriter)WidgetBase.WriteDeferredScriptInitialization()WidgetBase.GetService<TService>()WidgetBase.EventsWidgetBase.IdWidgetBase.SanitezeIdWidgetBase.WriterWidgetBase.InitializerWidgetBase.IsInClientTemplateWidgetBase.IsSelfInitializedWidgetBase.HasDeferredInitializationWidgetBase.HtmlAttributesWidgetBase.ScriptAttributesWidgetBase.HtmlHelperWidgetBase.ModelMetadataProviderWidgetBase.NameWidgetBase.ExplorerWidgetBase.SelectorWidgetBase.IdPrefixWidgetBase.ViewContextWidgetBase.ValueProviderWidgetBase.GeneratorWidgetBase.UrlGeneratorWidgetBase.HtmlEncoderWidgetBase.HasClientComponentWidgetBase.UseMvvmInitializationobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ScrollView class.

C#
public ScrollView(ViewContext viewContext, INavigationItemAuthorization authorization)
Parameters:viewContextViewContextauthorizationINavigationItemAuthorization

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 that returns the template used for ARIATemplate

C#
public string ARIATemplateHandler { get; set; }

The id of the script element used for ARIATemplate

C#
public string ARIATemplateId { get; set; }

Authorization member.

C#
public INavigationItemAuthorization Authorization { get; }

Implements: INavigationItemComponent<ScrollViewItem>.Authorization

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; }

Gets or sets the DataSource.

C#
public DataSource DataSource { get; }

Gets or sets the DataSourceId.

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 that returns the template used for EmptyTemplate

C#
public string EmptyTemplateHandler { get; set; }

The id of the script element used for 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; }

ItemAction member.

C#
public Action<ScrollViewItem> ItemAction { get; set; }

Implements: INavigationItemComponent<ScrollViewItem>.ItemAction

Items member.

C#
public IList<ScrollViewItem> Items { get; }

Implements: INavigationItemContainer<ScrollViewItem>.Items

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

C#
public ScrollViewMessagesSettings Messages { get; }

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; }

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; }

SecurityTrimming member.

C#
public SecurityTrimming SecurityTrimming { get; set; }

Implements: INavigationItemComponent<ScrollViewItem>.SecurityTrimming

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 that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

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

Serializes the component settings to a dictionary.

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

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)