This is a migrated thread and some comments may be shown as answers.

Cabghe "Grouping" style

2 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lupotana
Top achievements
Rank 1
lupotana asked on 28 Nov 2011, 11:14 AM
Hi,
I've the graphic request for the grid in modality "Grouping",
 
1) (Red Double-Arrows in attached image)
  I would resize the width of GridGroupSplitterColumn. How do I do ?

2) (Green Double-Arrows in the attached image)
  I would resize the space beetween the start of detail and the first GridGroupByField

3) (Blue Circle in the attached image)
  I would hide the FieldAlias.
 
<telerik:GridGroupByField FieldName="INFO_GAME" FieldAlias="ยป" HeaderValueSeparator=" ">                                           </telerik:GridGroupByField>

Thanks a lot,
Marco

2 Answers, 1 is accepted

Sort by
0
lupotana
Top achievements
Rank 1
answered on 01 Dec 2011, 05:54 PM
No idea ? :-(
0
Pavlina
Telerik team
answered on 01 Dec 2011, 06:14 PM
Hello Lupotana,

Straight to your questions:

1) To change the GroupSplitterColumn width you can handle on ColumnCreated server side event and set the desired width:
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
    if (e.Column is GridGroupSplitterColumn)
    {
        e.Column.HeaderStyle.Width = Unit.Pixel(10);
    }
}

2) To resize this space you could remove the paddings as shown below:
<style type="text/css">
        .RadGrid .rgGroupHeader td
        {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    </style>

3) To hide the FieldAlias you can try the following code:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridGroupHeaderItem)
       {
           GridGroupHeaderItem groupHeader = (GridGroupHeaderItem)e.Item;
           {
               groupHeader.DataCell.Text = groupHeader.DataCell.Text.Split(':')[1].ToString();
           }
       }
   }

Regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
lupotana
Top achievements
Rank 1
Answers by
lupotana
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or