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

[Solved] custom add GridExpandColumn

2 Answers 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FLIDEV
Top achievements
Rank 2
FLIDEV asked on 06 Oct 2009, 02:16 PM
Hello,

I have a Grid with MasterTable and DetailTable and I create all columns on code behind.
At first, I delete all existing Columns and add all needed columns.

My fist column shoud be the ExpandCollapse-column. Here the c# code:

 

GridExpandColumn oEC = new GridExpandColumn();  
oEC.ButtonType = GridExpandColumnType.SpriteButton;  
oEC.CommandName = "ExpandCollapse";  
oEC.UniqueName = "ExpandCollapse";  
oEC.ItemStyle.Width = Unit.Pixel(20);  
oEC.HeaderStyle.Width = Unit.Pixel(20);  
oEC.FooterStyle.Width = Unit.Pixel(20);  
oEC.Display = true;  
oEC.Visible = true;  
this.RadGridDistribution.Columns.Add(oEC);  
 


My problem is, I get no bostback by clicking.

I hope, anybody can give me a tip.

Detlef!

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Oct 2009, 05:43 PM
Hi,

For more information about how to add ExpandAll/CollapseAll option in the header of custom expand/collapse column for hierarchical RadGrid, refer to this code library:
Custom expand/collapse column with ExpandAll/CollapseAll image button in the header

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
FLIDEV
Top achievements
Rank 2
answered on 07 Oct 2009, 02:24 PM
Hello Pavlina,

thank you for your answer. I found an other solution.

Detlef!
Tags
Grid
Asked by
FLIDEV
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
FLIDEV
Top achievements
Rank 2
Share this question
or