C# Class Open.Core.Lists.ListView

Renders a simple list.
Inheritance: ViewBase
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Clear() public method

Clears the list (disposing of all children).
public Clear ( ) : void
return void

Insert() public method

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.
return void

InsertRange() public method

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.
return void

ListView() public method

Constructor.
public ListView ( jQueryObject container ) : System
container jQueryObject The containing element.
return System

Load() public method

Loads the collection of models into the list.
public Load ( IEnumerable items ) : void
items IEnumerable A collection models.
return void

Remove() public method

Removes the list item with the specified model.
public Remove ( object model ) : void
model object The model of the item to remove.
return void