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

Header text for clientselectcolumn

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 20 Apr 2012, 01:28 PM
Setting header text property for clientselectcolumn is not shown in grid. I want to show a text for the column.Please help.

<telerik:GridClientSelectColumn UniqueName="Select" HeaderText="Select All">
                    </telerik:GridClientSelectColumn>

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Apr 2012, 01:53 PM
Hi Tina,

You can add a label to the headeritem for the clientselectcolumn as shown in the code below.

C#:
protected void RadGrid2_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridHeaderItem)
    {
        GridHeaderItem item = (GridHeaderItem)e.Item;
        Label lbl = new Label();
        lbl.ID = "Label1";
        lbl.Text = "Select All";
        item["Select"].Controls.Add(lbl);
    }
}

Thanks,
Princy.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or