Kendo.Mvc.UI.ListView

Kendo UI ListView component

Properties

DataSource

Gets the DataSource settings.

DataSourceId

Gets or sets the name of the external DataSource used by the ListView.

ClientTemplateId

Gets or sets the id of the client template used to render ListView items.

ClientAltTemplateId

Gets or sets the id of the client template used to render alternating ListView items.

Pageable

Gets the ListView paging settings.

Scrollable

If set to true the listview will display a scrollbar when the content exceeds the listview height value. By default scrolling is disabled. It could be set to endless in order to enable the endless scrolling functionality. In endless scrolling mode the listview should be configured to display a scrollbar. Scrolling to the end of the scrollbar will load more items (equal to the pageSize number) and append them to the listview DOM element utill all items are loaded and displayed.

Editable

Gets the ListView editing settings.

EditorHtml

Gets or sets the ListView editor HTML.

AutoBind

If set to false the widget will not bind to the data source 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 data source specified in the configuration.

Bordered

Renders border around the listview element.

Borders

Renders border around the listview items. Valid values are: all: renders borders around listview items.; horizontal: renders top border of listview items. Useful when setting layout: "flex" and flex.direction: column. or vertical: renders top border of listview items. Useful when setting layout: "flex" and flex.direction: row..

Layout

Specify the layout of listview content. Valid options are: flex: This is equivalent to display: flex. It defines a flex container and enables a flex context for all its direct children. Think of flex items as primarily laying out either in horizontal rows or vertical columns. or grid: This is equivalent to display: grid. It defines the element as a grid container and establishes a new grid formatting context for its contents..

Flex

Flex layout settings

Grid

Grid layout settings.

Indicates whether keyboard navigation is enabled/disabled.

TagName

Specifies ListView wrapper element tag name.

Selectable

Specifies whether item selection is allowed. By default selection is disabled

Methods

WriteHtml(System.IO.TextWriter)

Writes the ListView HTML output.

Parameters

writer System.IO.TextWriter

The text writer instance.

WriteInitializationScript(System.IO.TextWriter)

Writes the ListView initialization script.

Parameters

writer System.IO.TextWriter

The text writer instance.

VerifySettings

Verifies if all required settings are present in the ListView.

SerializeSettings

Serialize current instance to Dictionary

In this article
Not finding the help you need?