ListView<T>
Kendo UI ListView component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class ListView<T> : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IListView where T : class
Inheritance: objectWidgetBaseListView<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the ListView<T> class.
public ListView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The context for view execution.
initializerIJavaScriptInitializerThe JavaScript initializer.
urlGeneratorIUrlGeneratorThe url generator.
Properties
Sets an aria-label attribute on the ListView content element (the element with role listbox or list).
public string AriaLabel { get; set; }
Defines whether the ListView will bind to the data source during initialization.
public bool? AutoBind { get; set; }
Renders border around the listview element.
public bool? Bordered { get; set; }
Implements:
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..
public string Borders { get; set; }
Implements:
Gets or sets the client template used to render ListView items.
public string ClientAltTemplate { get; set; }
public string ClientAltTemplateHandler { get; set; }
Gets or sets the id of the client template used to render ListView items.
public string ClientAltTemplateId { get; set; }
Implements:
Gets or sets the client template used to render ListView items.
public string ClientTemplate { get; set; }
public string ClientTemplateHandler { get; set; }
Gets or sets the id of the client template used to render ListView items.
public string ClientTemplateId { get; set; }
Implements:
Defines the type of element that holds the listview content.
public string ContentElement { get; set; }
Gets the DataSource settings.
public DataSource DataSource { get; }
Implements:
Gets or sets the name of the external DataSource used by the ListView.
public string DataSourceId { get; set; }
Gets the ListView editing settings.
public ListViewEditingSettings<T> Editable { get; }
Gets or sets the ListView editor HTML.
public string EditorHtml { get; set; }
Implements:
Flex layout settings
public ListViewFlexSettings Flex { get; }
Implements:
Grid layout settings.
public ListViewGridSettings Grid { get; }
Implements:
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..
public string Layout { get; set; }
Implements:
Gets or sets the ListView keyboard navigation settings.
public bool Navigatable { get; set; }
Implements:
Gets the ListView paging settings.
public ListViewPageableSettings Pageable { get; }
Implements:
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.
public ListViewScrollableSettings Scrollable { get; }
Specifies whether item selection is allowed. By default selection is disabled
public ListViewSelectionSettings Selectable { get; }
Implements:
Specifies ListView wrapper element tag name.
public string TagName { get; set; }
Implements:
Gets the UrlGenerator instance.
public IUrlGenerator UrlGenerator { get; }
Implements:
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Verifies if all required settings are present in the ListView.
public override void VerifySettings()
Overrides:
Writes the ListView HTML output.
protected override void WriteHtml(HtmlTextWriter writer)
The text writer instance.
Overrides:
Writes the ListView initialization script.
public override void WriteInitializationScript(TextWriter writer)
The text writer instance.
Overrides: