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

Another question about self-hierarchy grid

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shengpan Song
Top achievements
Rank 1
Shengpan Song asked on 08 Apr 2010, 09:25 AM

Hello,telerik.
Another question about self-hierarchy grid:
In self-hierarchy gird, Does expand-collapse indicator icon only show in datakey ID column?
Can I move the indicator to the other column (for example: LastName,or FirstName of live DEMO )?

Please me ,help me.all guys 

thanks any way 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Apr 2010, 12:42 PM
Hello Shengpan,

Try to replace the column name in CreateExpandCollapseButton method:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    CreateExpandCollapseButton(e.Item, "MyColumn");
}


protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    CreateExpandCollapseButton(e.Item, "MyColumn");
    ....

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Shengpan Song
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or