Sitefinity CMS

Telerik.Framework Send comments on this topic.
ICommandPanel Interface
See Also  Members   Example
Telerik.Web Namespace : ICommandPanel Interface


Defines members for command panel implementation. 
Namespace: Telerik.Web
Assembly: Telerik.Framework (in Telerik.Framework.dll)

Syntax

Visual Basic (Declaration) 
Public Interface ICommandPanel 
Visual Basic (Usage)Copy Code
Dim instance As ICommandPanel
C# 
public interface ICommandPanel 

Example

The following example provide implementation for the ICommandPanel interface. It provides two constructors which assigns the CommandPanel control's ControlPanel member.
C#Copy Code
public abstract class CommandPanelBase : CompositeControl, ICommandPanel
{
   
public CommandPanelBase(IControlPanel controlPanel)
   {
       
this.controlPanel = controlPanel;
   }

   
public CommandPanelBase(IControlPanel controlPanel, string name)
       :
this(controlPanel)
   {
       
this.name = name;
   }

   
public virtual string Name
   {
       get
       {
           
return this.name;            
       }
   }

   
public virtual string Title
   {
       get
       {
           
return this.titleImpl;
       }
   }

   
public virtual IControlPanel ControlPanel
   {
       get
       {
           
return this.controlPanel;
       }
   }

   
public virtual void Refresh()
   {
       
base.RecreateChildControls();
   }

   
private string name;
   
protected string titleImpl;
   
private IControlPanel controlPanel;
}
    

Remarks

CommandPanels are used for Modules. They are connected to control panel and can not exist without it. Most often they are used as a left side navigation for the modules admin part.

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