Sitefinity CMS

Telerik.Framework Send comments on this topic.
CreateControlPanel Method
See Also  Example
Telerik Namespace > IWebModule Interface : CreateControlPanel Method


parent
Specifies the container in which the ControlPanel control will be rendered.
Creates ControlPanel control which is the main container for the module administration.

 

Namespace: Telerik
Assembly: Telerik.Framework (in Telerik.Framework.dll)
  

Syntax

Visual Basic (Declaration) 
Function CreateControlPanel( _
   ByVal parent As TemplateControl _
) As Control
Visual Basic (Usage)Copy Code
Dim instance As IWebModule
Dim parent As TemplateControl
Dim value As Control
 
value = instance.CreateControlPanel(parent)
C# 
Control CreateControlPanel( 
   TemplateControl parent
)

Parameters

parent
Specifies the container in which the ControlPanel control will be rendered.

Return Value

Returns the ControlPanel control instance which is the main container for the module administration.

Example

The following example provides sample implementation of the CreateControlPanel method. It simply returns instance of a control which inherits from ControlPanelBase class.
C#Copy Code
/// <summary>
/// Creates the ControlPanel object which is rendered on the right side of the screen.
/// </summary>
/// <returns>Instance of the ControlPanel object of the module.</returns>
public override System.Web.UI.Control CreateControlPanel(System.Web.UI.TemplateControl parent)
{
   
return new Telerik.Samples.Jobs.Pluggable.WebControls.ControlPanel();
}
    

Remarks

The ControPanel control is usually rendered in the right side of the administration part for a module. It should inherit the Telerik.Web.IControlPanel interface. Usually the ControlPanel controls inherit the Telerik.Web.ControlPanelBase class which in its turn inherits the Telerik.Web.IControlPanel and provides basic implementation for the ControlPanel controls.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also