5 Answers, 1 is accepted
0

Jayesh Goyani
Top achievements
Rank 2
answered on 01 Jun 2012, 02:08 PM
Hello Savyo,
Thanks,
Jayesh Goyani
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true"
Thanks,
Jayesh Goyani
0

Savyo
Top achievements
Rank 1
answered on 01 Jun 2012, 03:47 PM
Thanks Jayesh for your code. However what I actually required was a headertext for my ClientSelectColumn. Sorry for not specifying my requirement correctly. Anyway i would appreciate your support if you help me out with this. I have given the header ClientSelectColumn for multiple selection.
Savyo
Savyo
0

Shinu
Top achievements
Rank 2
answered on 01 Jun 2012, 03:50 PM
Hi,
Please try the following code for giving HeaderText for ClientSelectColumn.
C#:
Thanks,
Shinu.
Please try the following code for giving HeaderText for ClientSelectColumn.
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,
Shinu.
0

DQ
Top achievements
Rank 1
answered on 16 Aug 2012, 06:19 PM
What is wrong with the HeaderText = "ZZZ" in the aspx/ascx? It does not work?
0

Shinu
Top achievements
Rank 2
answered on 17 Aug 2012, 04:38 AM
Hi,
Giving HeaderText in ASPX works if the AllowMultiRowSelection is set to false. If its set to true then the HeaderText wont appear. The above code snippet is to give the header for ClientSelectColumn with multiple row selection.
Thanks,
Shinu.
Giving HeaderText in ASPX works if the AllowMultiRowSelection is set to false. If its set to true then the HeaderText wont appear. The above code snippet is to give the header for ClientSelectColumn with multiple row selection.
Thanks,
Shinu.