C# Класс Open.Core.Lists.ListView

Renders a simple list.
Наследование: ViewBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : void

Clears the list (disposing of all children).

Insert ( int index, object model ) : void

Inserts a list-item for the given model at the specified index.

InsertRange ( int startingAt, IEnumerable models ) : void

Loads the collection of models into the list.

ListView ( jQueryObject container ) : System

Constructor.

Load ( IEnumerable items ) : void

Loads the collection of models into the list.

Remove ( object model ) : void

Removes the list item with the specified model.

Приватные методы

Метод Описание
ClearSelection ( IListItemView exclude ) : void
CreateItem ( object model ) : IView
GetListItemViews ( ) : IEnumerable
GetView ( object model ) : IListItemView
InsertBefore ( int insertAt ) : jQueryObject
ListView ( ) : System
OnItemClick ( jQueryApi.jQueryEvent e, IListItemView item ) : void
OnViewPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
RemoveView ( IView view ) : void
SelectItem ( IListItemView item ) : void

Описание методов

Clear() публичный Метод

Clears the list (disposing of all children).
public Clear ( ) : void
Результат void

Insert() публичный Метод

Inserts a list-item for the given model at the specified index.
public Insert ( int index, object model ) : void
index int The index to insert at (0-based).
model object The data-model for the item.
Результат void

InsertRange() публичный Метод

Loads the collection of models into the list.
public InsertRange ( int startingAt, IEnumerable models ) : void
startingAt int Index to start inserting at (0-based).
models IEnumerable A collection models.
Результат void

ListView() публичный Метод

Constructor.
public ListView ( jQueryObject container ) : System
container jQueryObject The containing element.
Результат System

Load() публичный Метод

Loads the collection of models into the list.
public Load ( IEnumerable items ) : void
items IEnumerable A collection models.
Результат void

Remove() публичный Метод

Removes the list item with the specified model.
public Remove ( object model ) : void
model object The model of the item to remove.
Результат void