C# Class SenseNet.Portal.UI.Controls.PagerControl

Inheritance: System.Web.UI.UserControl
ファイルを表示 Open project: maxpavlov/FlexNet

Protected Properties

Property Type Description
PageRepeater System.Web.UI.WebControls.Repeater
PageSizeListControl System.Web.UI.WebControls.ListControl
PageSizePanel System.Web.UI.WebControls.PlaceHolder

Private Properties

Property Type Description
RebuildControls void
ReplaceControl void
ReplaceControl void

Protected Methods

Method Description
CreateChildControls ( ) : void
LoadControlState ( object savedState ) : void
OnInit ( EventArgs e ) : void
OnPreRender ( EventArgs e ) : void
PageSizeListControl_SelectedIndexChanged ( object sender, EventArgs e ) : void
Repeater_OnItemCommand ( object sender, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void

This method controls the actually selected page number after the user pressed one of the navigation links

Repeater_OnItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void

This method controls the visibility of the navigation controls (selected page, back and forward links)

SaveControlState ( ) : object

Private Methods

Method Description
RebuildControls ( ) : void

Refresh the whole html by re-calculating the visible page numbers and databinding the main repeater

ReplaceControl ( WebControl controlToHide, Control controlToShow ) : void
ReplaceControl ( WebControl controlToHide, Control controlToShow, bool forceVisible ) : void

Hides the first control and shows the second. If there is no second, the first will be only disabled and gets a css postfix

Method Details

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

LoadControlState() protected method

protected LoadControlState ( object savedState ) : void
savedState object
return void

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void

PageSizeListControl_SelectedIndexChanged() protected method

protected PageSizeListControl_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Repeater_OnItemCommand() protected method

This method controls the actually selected page number after the user pressed one of the navigation links
protected Repeater_OnItemCommand ( object sender, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void
sender object
e System.Web.UI.WebControls.RepeaterCommandEventArgs
return void

Repeater_OnItemDataBound() protected method

This method controls the visibility of the navigation controls (selected page, back and forward links)
protected Repeater_OnItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void
sender object
e System.Web.UI.WebControls.RepeaterItemEventArgs
return void

SaveControlState() protected method

protected SaveControlState ( ) : object
return object

Property Details

PageRepeater protected_oe property

protected Repeater,System.Web.UI.WebControls PageRepeater
return System.Web.UI.WebControls.Repeater

PageSizeListControl protected_oe property

protected ListControl,System.Web.UI.WebControls PageSizeListControl
return System.Web.UI.WebControls.ListControl

PageSizePanel protected_oe property

protected PlaceHolder,System.Web.UI.WebControls PageSizePanel
return System.Web.UI.WebControls.PlaceHolder