C# Class DotNetNuke.Common.Lists.ListEntries

Manages Entry List
Inheritance: DotNetNuke.Entities.Modules.PortalModuleBase
Afficher le fichier Open project: ucdavis/caesdodnn

Méthodes publiques

Méthode Description
DataBind ( ) : void

Méthodes protégées

Méthode Description
EntriesGridItemCommand ( object source, System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void

Handles events when clicking image button in the grid (Edit/Up/Down)

EntriesGridItemDataBound ( object sender, System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
OnAddEntryClick ( object sender, EventArgs e ) : void

Handles Add New Entry command

Using "CommandName" property of cmdSaveEntry to determine this is a new entry of an existing list

OnCancelClick ( object sender, EventArgs e ) : void

Cancel

OnDeleteClick ( object sender, EventArgs e ) : void

Delete List

If deleting entry is not the last one in the list, rebinding the grid, otherwise return back to main page (rebinding DNNTree)

OnDeleteListClick ( object sender, EventArgs e ) : void

Delete List

OnInit ( EventArgs e ) : void

Page load, bind tree and enable controls

OnListCreated ( EventArgs e ) : void
OnListEntryCreated ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnSaveEntryClick ( object sender, EventArgs e ) : void

Handles cmdSaveEntry.Click

Using "CommandName" property of cmdSaveEntry to determine action to take (ListUpdate/AddEntry/AddList)

SelectListIndexChanged ( object sender, EventArgs e ) : void

Select a list in dropdownlist

Private Methods

Méthode Description
BindGrid ( ) : void

Loads top level entry list

BindListInfo ( ) : void

Loads top level entry list

DeleteItem ( int entryId ) : void
DeleteList ( ) : void
EnableEdit ( bool AddList ) : void

Switching to edit mode, change controls visibility for editing depends on AddList params

EnableView ( bool ViewMode ) : void

Switching to view mode, change controls visibility for viewing

GetList ( string key, bool update ) : DotNetNuke.Common.Lists.ListInfo
InitList ( ) : void

Loads top level entry list

Method Details

DataBind() public méthode

public DataBind ( ) : void
Résultat void

EntriesGridItemCommand() protected méthode

Handles events when clicking image button in the grid (Edit/Up/Down)
protected EntriesGridItemCommand ( object source, System.Web.UI.WebControls.DataGridCommandEventArgs e ) : void
source object
e System.Web.UI.WebControls.DataGridCommandEventArgs
Résultat void

EntriesGridItemDataBound() protected méthode

protected EntriesGridItemDataBound ( object sender, System.Web.UI.WebControls.DataGridItemEventArgs e ) : void
sender object
e System.Web.UI.WebControls.DataGridItemEventArgs
Résultat void

OnAddEntryClick() protected méthode

Handles Add New Entry command
Using "CommandName" property of cmdSaveEntry to determine this is a new entry of an existing list
protected OnAddEntryClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnCancelClick() protected méthode

Cancel
protected OnCancelClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnDeleteClick() protected méthode

Delete List
If deleting entry is not the last one in the list, rebinding the grid, otherwise return back to main page (rebinding DNNTree)
protected OnDeleteClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnDeleteListClick() protected méthode

Delete List
protected OnDeleteListClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnInit() protected méthode

Page load, bind tree and enable controls
protected OnInit ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnListCreated() protected méthode

protected OnListCreated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnListEntryCreated() protected méthode

protected OnListEntryCreated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnSaveEntryClick() protected méthode

Handles cmdSaveEntry.Click
Using "CommandName" property of cmdSaveEntry to determine action to take (ListUpdate/AddEntry/AddList)
protected OnSaveEntryClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

SelectListIndexChanged() protected méthode

Select a list in dropdownlist
protected SelectListIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void