GridGroupPanel
Class
GridGroupPanel appears on the top of Telerik RadGrid when ShowGroupPanel of RadGrid is set to true and if AllowDragToGroup is set to true, you can drag column to the panel to group data by that column.
Group by fields (displayed in the GroupPanel) are defined through the GroupByExpressions.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
C#
public class GridGroupPanel : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer
Inheritance: objectControlWebControlGridGroupPanel
Implements:
Inherited Members
Example:
csharp
protected void RadGrid1_PreRender(object sender, System.EventArgs e)
{
TableCell cell;
foreach (cell in RadGrid1.GroupPanel.GroupPanelItems)
{
Control ctrl;
foreach (ctrl in cell.Controls)
{
if (ctrl is ImageButton)
{
ImageButton button = ctrl as ImageButton;
button.ImageUrl = "<my_img_url>";
button.CausesValidation = false;
}
}
}
}
csharp
Protected Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
Dim cell As TableCell
For Each cell In RadGrid1.GroupPanel.GroupPanelItems
Dim ctrl As Control
For Each ctrl In cell.Controls
If (Typeof ctrl Is ImageButton) Then
Dim button As ImageButton = CType(ctrl, ImageButton)
button.ImageUrl = "<my_img_url>"
button.CausesValidation = False
End If
Next ctrl
Next cell
End Sub
Constructors
For internal usage only.
C#
public GridGroupPanel()
Properties
Gets a collection of items displayed in the group panel. These items represent the GroupByFields used for Telerik RadGrid grouping.
C#
[Browsable(false)]
public List<GroupItemCell> GroupPanelItems { get; }
Gets the style that will be used for the group panel items.
C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GridPanelItemsStyle PanelItemsStyle { get; }
Gets the style that will be used for the group panel.
C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public GridGroupPanelStyle PanelStyle { get; }
C#
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Methods
C#
protected override void CreateChildControls()
Overrides:
C#
protected override void TrackViewState()
Overrides: